1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-24 11:12:14 +01:00

Merge pull request #1137 from dmach/osc-build-apiurl-fix

Add missing 'apiurl' argument when creating CookieJarAuthHandler instance in build.py
This commit is contained in:
Daniel Mach 2022-09-08 14:31:37 +02:00 committed by GitHub
commit a11a2b5702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1079,7 +1079,7 @@ def main(apiurl, opts, argv):
http_debug = config['http_debug'], http_debug = config['http_debug'],
modules = bi.modules, modules = bi.modules,
enable_cpio=not opts.disable_cpio_bulk_download and bi.enable_cpio, enable_cpio=not opts.disable_cpio_bulk_download and bi.enable_cpio,
cookiejar=connection.CookieJarAuthHandler(os.path.expanduser(conf.config["cookiejar"]))._cookiejar, cookiejar=connection.CookieJarAuthHandler(apiurl, os.path.expanduser(conf.config["cookiejar"]))._cookiejar,
download_api_only=opts.download_api_only) download_api_only=opts.download_api_only)
if not opts.trust_all_projects: if not opts.trust_all_projects: