1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

fix importsrcpkg when $projectdir/.osc/_apiurl is an alternative apiurl

This commit is contained in:
Michal Marek 2008-03-03 13:51:01 +00:00
parent 016c80db86
commit 6c20c7203f

View File

@ -1728,6 +1728,12 @@ class Osc(cmdln.Cmdln):
sys.exit(1)
else:
project = store_read_project(project_dir)
# act as if run with -A `cat $project_dir/.osc/_apiurl`
# to get apiurl and user right
apiurl = store_read_apiurl(project_dir)
conf.get_config(override_conffile = self.options.conffile,
override_http_debug = self.options.http_debug,
override_apisrv = apiurl)
rpm_data = data_from_rpm(srpm, 'Name:', 'Summary:', '%description')
if rpm_data: