summaryrefslogtreecommitdiff
path: root/patchtracker/SourceArchive.py
diff options
context:
space:
mode:
authorSean Finney <seanius@seanius.net>2009-12-02 20:24:48 +0100
committerSean Finney <seanius@seanius.net>2009-12-02 20:24:48 +0100
commite5fd3dd111d34276aa705f8eac09494cda178c98 (patch)
treeb36476974d180210253237f8968803bc0f717780 /patchtracker/SourceArchive.py
parent11db52a1fedf54f728a9c7f6a890c1bc6d28bd7c (diff)
downloadpatch-tracker-e5fd3dd111d34276aa705f8eac09494cda178c98.tar.gz
initial support for source package format 3.0 (quilt)
the changes aren't as pretty as i'd like them to be, but i don't want to hold things up on mere aesthetic grounds and it seems to work anyway :)
Diffstat (limited to 'patchtracker/SourceArchive.py')
-rwxr-xr-xpatchtracker/SourceArchive.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/patchtracker/SourceArchive.py b/patchtracker/SourceArchive.py
index 6134682..da18e83 100755
--- a/patchtracker/SourceArchive.py
+++ b/patchtracker/SourceArchive.py
@@ -91,10 +91,19 @@ def getidx(letter):
class SourcePackage:
def __init__(self, info):
+ # attributes for debian .diff.gz source packages
self.diffgz_name = None
self.diffgz_size = None
self.diffgz_md5sum = None
self.diffgz = None
+
+ # attributes for debian .debian.tar.gz source packages
+ self.debtar_name = None
+ self.debtar_size = None
+ self.debtar_md5sum = None
+ self.debtar = None
+
+ # some other defaults
self.type = "Native"
self.name = info['Package']
self.format = info['Format']
@@ -120,6 +129,11 @@ class SourcePackage:
self.diffgz_size=f['size']
self.diffgz_md5sum=f['md5sum']
self.type = "Debian-diff"
+ elif fnmatch(f['name'], '*.debian.tar.gz'):
+ self.debtar_name=f['name']
+ self.debtar_size=f['size']
+ self.debtar_md5sum=f['md5sum']
+ self.type = "Debian-tar"
def __str__(self):
return self.name