On Tuesday 31 October 2006 10:03, Jesse Keating wrote: > Very simply just makes sure the file ends in .rpm before appending to the > rpmlist. Patch redone to just accept the rpmerror and continue through the list. It was suggested in #anaconda that this was better. -- Jesse Keating Release Engineer: Fedora
--- ./splittree.py.jk 2006-11-01 15:12:01.391196000 -0500
+++ ./splittree.py 2006-11-01 15:11:48.244355000 -0500
@@ -261,7 +261,10 @@
# create the packages dictionary in this format: n-v-r.a:['n-v-r.arch.rpm']
for filename in rpmlist:
filesize = os.path.getsize("%s/%s/%s" % (self.dist_dir, pkgdir, filename))
- pkg_nvr = nvra("%s/%s/%s" %(self.dist_dir, pkgdir, filename))
+ try:
+ pkg_nvr = nvra("%s/%s/%s" %(self.dist_dir, pkgdir, filename))
+ except rpm.error, e:
+ continue
if packages.has_key(pkg_nvr):
# append in case we have multiple packages with the
Attachment:
pgpuTjD7HUifM.pgp
Description: PGP signature