PATCH: make splittree.py get headers from rpmfiles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Very simply just makes sure the file ends in .rpm before appending to the 
rpmlist.

-- 
Jesse Keating
Release Engineer: Fedora
--- anaconda-runtime/splittree.py.jk	2006-10-31 09:52:24.000000000 -0500
+++ anaconda-runtime/splittree.py	2006-10-31 09:55:07.000000000 -0500
@@ -249,13 +249,18 @@
         """Creates links in the split dirs for the RPMs"""
         
         packages = {}
+        rpmlist = []
 
         if os.path.isdir("%s/%s/RPMS" %(self.dist_dir, self.product_path)):
             pkgdir = "%s/RPMS" %(self.product_path, )
         else:
             pkgdir = "%s" %(self.product_path,)
             
-        rpmlist = os.listdir("%s/%s" %(self.dist_dir, pkgdir))
+        filelist = os.listdir("%s/%s" %(self.dist_dir, pkgdir))
+        for file in filelist:
+            if file.endswith('.rpm'):
+                rpmlist.append(file)
+
         rpmlist.sort()
 
         # create the packages dictionary in this format: n-v-r.a:['n-v-r.arch.rpm']

Attachment: pgpNrZ1vHIUe7.pgp
Description: PGP signature


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux