Mailinglist Archive: yast-commit (815 mails)

< Previous Next >
[yast-commit] r39896 - /trunk/packager/src/clients/inst_source.ycp
  • From: lslezak@xxxxxxxxxxxxxxxx
  • Date: Thu, 02 Aug 2007 12:12:57 -0000
  • Message-id: <20070802121257.CC7E4B58AE@xxxxxxxxxxxxxxxx>
Author: lslezak
Date: Thu Aug  2 14:12:57 2007
New Revision: 39896

URL: http://svn.opensuse.org/viewcvs/yast?rev=39896&view=rev
Log:
- don't call SourceProductData(), it's useless

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

Modified: trunk/packager/src/clients/inst_source.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/clients/inst_source.ycp?rev=39896&r1=39895&r2=39896&view=diff
==============================================================================
--- trunk/packager/src/clients/inst_source.ycp (original)
+++ trunk/packager/src/clients/inst_source.ycp Thu Aug  2 14:12:57 2007
@@ -63,14 +63,12 @@
     define term createItem( integer index, map source ) ``{
         integer id = source[ "SrcId" ]:0;
         map generalData = Pkg::SourceGeneralData( id );
-        map productData = Pkg::SourceProductData( id );
-       y2milestone("generalData: %1", generalData);
-       y2milestone("productData: %1", productData);
+       y2milestone("generalData(%1): %2", id, generalData);
 
        string alias = haskey(sourceStatesOut[index]:$[], "name") ?
            sourceStatesOut[index,"name"]:"" :
            // unkown name (alias) of the source
-           generalData[ "alias" ]:productData["label"]:generalData[ "type" ]: _("Unknown Name");
+           generalData[ "alias" ]:generalData[ "type" ]: _("Unknown Name");
 
         term item = `item(
                          `id( index ),
@@ -87,14 +85,12 @@
     map<string,any> getSourceInfo (integer index, map source) {
         integer id = source[ "SrcId" ]:0;
         map generalData = Pkg::SourceGeneralData( id );
-        map productData = Pkg::SourceProductData( id );
-       y2milestone("generalData: %1", generalData);
-       y2milestone("productData: %1", productData);
+       y2milestone("generalData(%1): %2", id, generalData);
 
        string alias = haskey(sourceStatesOut[index]:$[], "name") ?
            sourceStatesOut[index,"name"]:"" :
            // unkown name (alias) of the source
-           generalData[ "alias" ]:productData["label"]:generalData[ "type" ]: _("Unknown Name");
+           generalData[ "alias" ]:generalData[ "type" ]: _("Unknown Name");
 
        map<string,any> out = $[
            "enabled" : source["enabled"]:true,

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

< Previous Next >
This Thread
  • No further messages