diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-19 16:39:35 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-19 16:39:35 +0100 |
commit | 15310f7ccf01137fd9f2212ddd3951f35c7fd6df (patch) | |
tree | 3c56410c9e2bcfc98b3151a5eae4fea02a3b5def | |
parent | 6e7aa86c2869917dba23b8c101f4680ddb92ab29 (diff) | |
download | unperish-15310f7ccf01137fd9f2212ddd3951f35c7fd6df.tar.gz |
Support non-native Debian tarballs.
-rwxr-xr-x | unperish | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -135,8 +135,12 @@ class Unperish(cliapp.Application): @property def debian_tarball(self): - return '%s_%s.orig.tar.gz' % (self.debian_source_package, - self.upstream_version) + is_native = '-' not in self.debian_version + if is_native: + pattern = '%s_%s.tar.gz' + else: + pattern = '%s_%s.orig.tar.gz' + return pattern % (self.debian_source_package, self.upstream_version) @property def dirname(self): |