summaryrefslogtreecommitdiff
path: root/patchtracker
diff options
context:
space:
mode:
authorBernhard R. Link <brlink@debian.org>2010-02-28 13:28:34 +0100
committerSean Finney <seanius@debian.org>2010-03-01 20:04:32 +0100
commit61fcf7a28926422bf7352895ee793e459aeb73c7 (patch)
tree8b47be31334ae211b4964bc5f878988cd28acfbe /patchtracker
parente4254f572ff51111c9ee434af4f34a9b9e5790b7 (diff)
downloadpatch-tracker-61fcf7a28926422bf7352895ee793e459aeb73c7.tar.gz
allow a "3.0 (quilt)" format packages without patches.
Diffstat (limited to 'patchtracker')
-rw-r--r--patchtracker/Patch.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/patchtracker/Patch.py b/patchtracker/Patch.py
index e987c0a..d6044cc 100644
--- a/patchtracker/Patch.py
+++ b/patchtracker/Patch.py
@@ -143,10 +143,14 @@ class Quilt30PatchSeries (GenericPatchSeries):
self.style = "quilt (3.0)"
self.tarfh = tarfile.open(tarBall, 'r:*')
try:
- series_fh = self.tarfh.extractfile("debian/patches/debian.series")
+ try:
+ series_fh = self.tarfh.extractfile("debian/patches/debian.series")
+ except KeyError:
+ series_fh = self.tarfh.extractfile("debian/patches/series")
except KeyError:
- series_fh = self.tarfh.extractfile("debian/patches/series")
- self.names = [fn.strip() for fn in series_fh.readlines()]
+ self.names = []
+ else:
+ self.names = [fn.strip() for fn in series_fh.readlines()]
# XXX to lazy eval this might be better
for name in self.names:
self.patches[name] = Patch(self.tarfh.extractfile("debian/patches/"+name))