File SLE.diff of Package yast2-metapackage-handler

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
+}