summaryrefslogtreecommitdiff
path: root/patchtracker
diff options
context:
space:
mode:
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))