mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +01:00
allow to import source rpms by specifying an URL
This commit is contained in:
parent
633fd2c10f
commit
8316936fa5
@ -1677,11 +1677,20 @@ class Osc(cmdln.Cmdln):
|
|||||||
updated (<title /> and <description />).
|
updated (<title /> and <description />).
|
||||||
The src.rpm will be extracted into the package dir.
|
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_usage}
|
||||||
${cmd_option_list}
|
${cmd_option_list}
|
||||||
"""
|
"""
|
||||||
import glob
|
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)
|
srpm = os.path.abspath(srpm)
|
||||||
|
|
||||||
if opts.project:
|
if opts.project:
|
||||||
|
Loading…
Reference in New Issue
Block a user