diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-06-19 10:02:46 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-06-19 10:02:46 +0100 |
commit | dfe712c8bb67d2bf2a6898e34ce8ec787ac668a5 (patch) | |
tree | 6e5dee260eab50d14e13f3bf8082d94c1394b6df | |
parent | a178af925ed2072f3986000a4e19a529d96e568c (diff) | |
download | unperish-dfe712c8bb67d2bf2a6898e34ce8ec787ac668a5.tar.gz |
Add dget command.
-rwxr-xr-x | unperish | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -46,6 +46,9 @@ class Unperish(cliapp.Application): self.settings.string(['upload-target'], 'generate debian/changelog entry for uploading ' 'to given target') + self.settings.string(['dsc'], + 'Debian source package (for dget command)', + metavar='URL') def process_args(self, args): self.meta = self.create_meta() @@ -113,6 +116,19 @@ class Unperish(cliapp.Application): '''Print out contents of project meta file (project.meta).''' self.meta.write(self.output) + def cmd_dget(self, args): + '''Retrieve a Debian source package (.dsc and other files). + + Put the files in the build area. + + ''' + + if not self.settings['dsc']: + raise cliapp.AppException('Need --dsc option for dget') + + self.runcmd('dget', '--download-only', self.settings['dsc'], + cwd=self.settings['build-area']) + def cmd_export(self, args): '''Export unpacked source directory to build area.''' self.runcmd('bzr', 'export', self.join(self.dirname)) |