Search
j0ke.net Open Build Service
>
Projects
>
J0KE.NET
:
infrastructure
>
yast2-metapackage-handler
> SLE.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File SLE.diff of Package yast2-metapackage-handler (Revision 2)
Currently displaying revision
2
,
show latest
Index: src/OneClickInstallWorkerFunctions.ycp =================================================================== --- src/OneClickInstallWorkerFunctions.ycp (revision 45871) +++ src/OneClickInstallWorkerFunctions.ycp (working copy) @@ -102,9 +102,9 @@ "alias":OneClickInstall::GetRepositoryName(new_url), "base_urls":[new_url] ]; - integer srcid = Pkg::RepositoryAdd(repoData); - boolean success = Pkg::SourceRefreshNow(srcid); - if (!success) + integer srcid = Pkg::SourceCreate(new_url,"/"); + //boolean success = Pkg::SourceRefreshNow(srcid); + if (srcid <0) { if (Popup::YesNo (_("An error occurred while initializing the software repository.") + "\n" + _("Details:") + "\n" + Pkg::LastError() + "\n" + _("Try again?"))) { @@ -272,4 +272,4 @@ return nil; } -} \ No newline at end of file +}