1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01:00

allow to import source rpms by specifying an URL

This commit is contained in:
Dr. Peter Poeml 2007-07-25 12:21:46 +00:00
parent 633fd2c10f
commit 8316936fa5

View File

@ -1677,11 +1677,20 @@ class Osc(cmdln.Cmdln):
updated (<title /> and <description />).
The src.rpm will be extracted into the package dir.
SRPM is the path of the src.rpm in the local filesystem,
or an URL.
${cmd_usage}
${cmd_option_list}
"""
import glob
if '://' in srpm:
print 'trying to fetch', srpm
import urlgrabber
urlgrabber.urlgrab(srpm)
srpm = os.path.basename(srpm)
srpm = os.path.abspath(srpm)
if opts.project: