Mailinglist Archive: yast-commit (815 mails)

< Previous Next >
[yast-commit] r39981 - /trunk/packager/src/clients/inst_productsources.ycp
  • From: locilka@xxxxxxxxxxxxxxxx
  • Date: Mon, 06 Aug 2007 11:17:28 -0000
  • Message-id: <20070806111728.82173B5996@xxxxxxxxxxxxxxxx>
Author: locilka
Date: Mon Aug  6 13:17:28 2007
New Revision: 39981

URL: http://svn.opensuse.org/viewcvs/yast?rev=39981&view=rev
Log:
Small fixes


Modified:
    trunk/packager/src/clients/inst_productsources.ycp

Modified: trunk/packager/src/clients/inst_productsources.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/clients/inst_productsources.ycp?rev=39981&r1=39980&r2=39981&view=diff
==============================================================================
--- trunk/packager/src/clients/inst_productsources.ycp (original)
+++ trunk/packager/src/clients/inst_productsources.ycp Mon Aug  6 13:17:28 2007
@@ -818,7 +818,7 @@
        integer src_id = Pkg::RepositoryAdd ($[
            "enabled" : true,
            "name" : repo_name,
-           "base_urls" : url,
+           "base_urls" : [url],
            "prod_dir" : pth,
            "alias" : url,
        ]);
@@ -828,7 +828,7 @@
                // TRANSLATORS: pop-up error message
                // %1 is replaced with a repository name or URL
                _("Adding repository %1 failed"),
-               list_of_repos[CreateRepoId(url,pth), "name"]:url
+               (repo_name != "" ? repo_name : url)
            ));
            // FIXME: retry ?
            return false;
@@ -864,7 +864,7 @@
     symbol WriteDialog () {
        list <string> actions_todo = [];
        list <string> actions_doing = [];
-       boolean at_once = nil;
+       boolean at_once = false;
 
        list <integer> repos_to_be_deleted = [];
 
@@ -963,12 +963,10 @@
            CreateSource (
                list_of_repos[repo_id, "url"]:"",
                list_of_repos[repo_id, "path"]:"/",
-               GetLocalizedString (repo_id, ["summary", "name"])
+               GetLocalizedString (repo_id, ["name"])
            );
        });
 
-       
-
        // Redraw installation wizard
        if (Stage::initial()) {
            UpdateWizardSteps();
@@ -978,7 +976,11 @@
        }
 
        Progress::Finish();
-       sleep (600);
+       if (Stage::initial()) {
+           sleep (600);
+       } else {
+           sleep (2000);
+       }
        
        return `next;
     }

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages