From a835bc96756933ccb62072620a00b501d8e4bef1 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 19 Jun 2011 10:08:39 +0100 Subject: Add options for setting Debian source package and version explicitly. This is good when rebuilding something from an existing source package. --- unperish | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/unperish b/unperish index 8d5335f..db01d2a 100755 --- a/unperish +++ b/unperish @@ -49,6 +49,12 @@ class Unperish(cliapp.Application): self.settings.string(['dsc'], 'Debian source package (for dget command)', metavar='URL') + self.settings.string(['debian-version'], + 'Debian version number (typically detected ' + 'from debian/changelog)') + self.settings.string(['debian-source'], + 'Debian source package name (typically detected ' + 'from debian/control)') def process_args(self, args): self.meta = self.create_meta() @@ -97,10 +103,14 @@ class Unperish(cliapp.Application): @property def debian_source_package(self): + if self.settings['debian-source']: + return self.settings['debian-source'] return self.debian_control['Source'] @property def debian_version(self): + if self.settings['debian-version']: + return self.settings['debian-version'] return self.debian_changelog.get_version() @property -- cgit v1.2.1