mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-09 07:51:28 +00:00
d/control: add dput dependency, remove runtime check
Signed-off-by: Dan Streetman <ddstreet@canonical.com>
This commit is contained in:
parent
f2118d6e7f
commit
4e63b2cbb5
@ -57,16 +57,6 @@ def check_call(cmd, *args, **kwargs):
|
|||||||
error('%s returned %d.' % (cmd[0], ret))
|
error('%s returned %d.' % (cmd[0], ret))
|
||||||
|
|
||||||
|
|
||||||
def check_program_exists(name, package=None):
|
|
||||||
paths = set(os.environ['PATH'].split(':'))
|
|
||||||
paths |= set(('/sbin', '/usr/sbin', '/usr/local/sbin'))
|
|
||||||
if not any(os.path.exists(os.path.join(p, name)) for p in paths):
|
|
||||||
Logger.error('Could not find "%s". Please install the package "%s" '
|
|
||||||
'to use this functionality.',
|
|
||||||
name, package or name)
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
|
|
||||||
def parse(args):
|
def parse(args):
|
||||||
usage = 'Usage: %prog [options] <source package name or .dsc URL/file>'
|
usage = 'Usage: %prog [options] <source package name or .dsc URL/file>'
|
||||||
parser = optparse.OptionParser(usage)
|
parser = optparse.OptionParser(usage)
|
||||||
@ -166,8 +156,6 @@ def parse(args):
|
|||||||
parser.error('Please specify either a working dir or an upload target!')
|
parser.error('Please specify either a working dir or an upload target!')
|
||||||
if opts.upload and opts.upload.startswith('ppa:'):
|
if opts.upload and opts.upload.startswith('ppa:'):
|
||||||
opts.release_pocket = True
|
opts.release_pocket = True
|
||||||
if opts.upload:
|
|
||||||
check_program_exists('dput')
|
|
||||||
|
|
||||||
return opts, args, config
|
return opts, args, config
|
||||||
|
|
||||||
|
1
debian/control
vendored
1
debian/control
vendored
@ -43,6 +43,7 @@ Depends:
|
|||||||
diffstat,
|
diffstat,
|
||||||
distro-info (>= 0.2~),
|
distro-info (>= 0.2~),
|
||||||
dpkg-dev,
|
dpkg-dev,
|
||||||
|
dput,
|
||||||
lsb-release,
|
lsb-release,
|
||||||
python3,
|
python3,
|
||||||
python3-apt,
|
python3-apt,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user