]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- skip if file doesn't exist
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 29 Mar 2010 19:31:03 +0000 (19:31 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 29 Mar 2010 19:31:03 +0000 (19:31 +0000)
Changed files:
    modules/ftptree.py -> 1.44

modules/ftptree.py

index d33dfbe8e4e650d1a031305ea15bd01721bbdf58..99e230849d2335e12a3d1a53f23fa3fb77ab9bd4 100644 (file)
@@ -180,6 +180,8 @@ class Pkg(BasePkg):
 
         obsoletes = {}
         for rpmfile in self.rpmfiles():
+            if not os.path.exists(rpmfile):
+                continue
             hdr = rpmhdr(rpmfile)
             if not hdr[rpm.RPMTAG_OBSOLETES]:
                 continue
This page took 0.080586 seconds and 4 git commands to generate.