find_source(use_uscan,
args)
|
|
Find the tarball to import - either via uscan or via command line
argument
- Returns: string
- upstream source filename or None if nothing to import
- Raises:
GbpError - raised on all detected errors
>>> find_source(False, ['too', 'much'])
Traceback (most recent call last):
...
GbpError: More than one archive specified. Try --help.
>>> find_source(False, [])
Traceback (most recent call last):
...
GbpError: No archive to import specified. Try --help.
>>> find_source(True, ['tarball'])
Traceback (most recent call last):
...
GbpError: you can't pass both --uscan and a filename.
>>> find_source(False, ['tarball']).path
'tarball'
|