Re: PATCH: make splittree.py get headers from rpmfiles

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

 



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: pgpVuyeoUcvLR.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