Building EL6 packages on Fedora 30 generates urlgrabber-ext-down
errors
by Doran Barton
Since upgrading my build system to Fedora 30, I'm having issues
building EL6 packages. My initial builds failed
because /usr/libexec/urlgrabber-ext-down did not exist. I discovered
this was provided by the python3-urlgrabber package and installed that
but now this error occurs:
Downloading packages:
Traceback (most recent call last):
File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
main()
File "/usr/libexec/urlgrabber-ext-down", line 52, in main
for k in line.split(' '):
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
main()
File "/usr/libexec/urlgrabber-ext-down", line 52, in main
for k in line.split(' '):
TypeError: a bytes-like object is required, not 'str'
Exiting on user cancel
Is this is a known issue with a known fix?
Thanks!
--
Doran L. Barton - <doran.barton(a)endurance.com>
Senior Developer, Neutron Team - Architecture and process
futurification "Local High School Dropouts Cut in Half" --News headline
4 years, 6 months
Trying to call distRepo from event driven hub plugin
by Robert Callicotte
Hello,
I am using koji version 1.16.2 for centos 7 and I'm having issues getting the following code to succeed:
################################################
import sys
import logging
import koji
from koji.plugin import callback
koji_hub_path = '/usr/share/koji-hub'
sys.path.insert(0, koji_hub_path)
import kojihub
logger = logging.getLogger('koji.plugins')
@callback('postTag')
def mycallback(cbtype, *args, **kwargs):
# Get the tag name from the buildroot map
opts = {}
taskOpts = {}
tag = kwargs['tag']['name']
keys = None
repo_id = 3
taskOpts['priority'] = koji.PRIO_DEFAULT
taskOpts['channel'] = 'createrepo'
taskOpts['owner'] = 3 #This is the kojiadmin account
taskOpts['arch'] = 'x86_64'
opts['tag'] = tag
opts['keys'] = keys
opts['allow_missing_signatures'] = True
opts['skip_missing_signatures'] = True
opts['latest'] = True
if tag == 'local7':
logging.getLogger('koji.plugin.mycallback').error('Executing mycallback.')
print 'Variable dump: ', args
print 'Expected tag is local7. mytag is: ', tag
print 'Starting dist repo generator for %s...' % tag
return kojihub.make_task('distRepo', [tag, keys], **taskOpts)
The above code always fails with the following exception:
koji.hub: Cannot parse parameters: ['local7', None] of distRepo task
Is make_task the correct function to call in this instance? What should the arguments passed to make_task look like?
Regards,
Robby
4 years, 7 months