Bug 1879471

Summary: __init__() got an unexpected keyword argument 'kojiconfig'
Product: [Fedora] Fedora Reporter: Jakub Kadlčík <jkadlcik>
Component: rpkg-utilAssignee: clime7
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: clime7, gduarte, sixg0000d, tzwjkl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-03 09:07:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Use kojiprofile instead of kojiconfig none

Description Jakub Kadlčík 2020-09-16 11:18:38 UTC
Created attachment 1715068 [details]
Use kojiprofile instead of kojiconfig

Description of problem:
The `rpkg` command currently doesn't work on F32 and fails with

    __init__() got an unexpected keyword argument 'kojiconfig'

It is related to https://pagure.io/rpkg/c/ff23577


Version-Release number of selected component (if applicable):
rpkg-2.7-5.fc32


How reproducible:
Always


Steps to Reproduce:
1. git clone https://pagure.io/rpkg-util   # Or any other project maintained with `rpkg` command
2. cd rpkg-util
3. rpkg srpm


Actual results:
__init__() got an unexpected keyword argument 'kojiconfig'


Expected results:
The `rpkg` command to proceed without any errors.


Additional info:
Since it seems that version 2.7 is the last rpkg-util upstream 2.x version and it is now reworked and 3.x is being developed, we IMHO have two options.

Either release 3.0 if it is stable-enough, or I am proposing a patch, that could be applied in the downstream.

Comment 1 clime7 2020-09-28 14:45:40 UTC
Hey, should be fixed in https://bodhi.fedoraproject.org/updates/FEDORA-2020-44457c00e8

Thanks for the report.

Comment 2 clime7 2020-10-03 09:07:11 UTC
Let me, please, know if there is any additional problem with this.

Comment 3 sixg0000d@gmail.com 2020-10-03 09:14:19 UTC
(In reply to clime7 from comment #2)
> Let me, please, know if there is any additional problem with this.

rpkg clone seem like have some problems.
$ rpkg clone prunerepo
'rpkgClient' object has no attribute 'extra_args'

rpkg sources doesn't seem to be doing anything and no response.

Comment 4 clime7 2020-10-03 11:30:46 UTC
(In reply to sixg0000d from comment #3)
> (In reply to clime7 from comment #2)
> > Let me, please, know if there is any additional problem with this.
> 
> rpkg clone seem like have some problems.
> $ rpkg clone prunerepo
> 'rpkgClient' object has no attribute 'extra_args'

Thank you, I have additionally fixed it here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-9ceeff6877

> 
> rpkg sources doesn't seem to be doing anything and no response.

it will only do something if there is `sources` file with references to files in lookaside cache. If the file is missing, the command is no-op.

Comment 5 sixg0000d@gmail.com 2020-10-04 09:13:37 UTC
(In reply to clime7 from comment #4)
> > 
> > rpkg sources doesn't seem to be doing anything and no response.
> 
> it will only do something if there is `sources` file with references to
> files in lookaside cache. If the file is missing, the command is no-op.

Thanks! I got it.