working with YaST log files in order get installed packages
authorStefan Schubert <schubi@suse.de>
Tue, 7 Mar 2006 11:07:32 +0000 (11:07 +0000)
committerStefan Schubert <schubi@suse.de>
Tue, 7 Mar 2006 11:07:32 +0000 (11:07 +0000)
testsuite/solver/tools/packages_to_xml.rb

index 9f29abe817fd147de2c9a779c091721cf20bdd95..bdf43e58a210441cd641a3db8213ddc39dff42da 100755 (executable)
@@ -248,7 +248,8 @@ class Parser
                                                                if packageFileExist then
                                                                        # Searching for matched packages
                                                                        packageList.each do | packName |
-                                                                               writeEntry = true if package.name == packName 
+                                                                               fit = packName.index(package.name)
+                                                                               writeEntry = true if fit != nil
                                                                        end
                                                                else
                                                                        writeEntry = true       
@@ -302,7 +303,8 @@ class Parser
                                        if File.file?(packageFile) then
                                                # Searching for matched packages
                                                packageList.each do | packName |
-                                                       writeEntry = true if package.name == packName 
+                                                       fit = packName.index(package.name)
+                                                       writeEntry = true if fit != nil
                                                end
                                        else
                                                writeEntry = true