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