#80 After update to 0.7.4 cloning "silently" fails with repo not found
Closed 9 months ago by tdawson. Opened 9 months ago by mhlavink.

Recent update to 0.7.4 broke my custom scripts. I use full repo name, but centpkg can no longer find it.

example command from my script:
centpkg clone -a --branch c9s rpms/dovecot /home/mihlit/ddbwf/dovecot/rhel9/9.3.0.dwf-new

this fails with:
"""
There is no repository with the given name. Did you spell it correctly?
Fatal:
404: 404 Project Not Found
"""

the command above will work if I change "rpms/dovecot" to just "dovecot"
This was working fine in previous version.

There is also another issue that the above message is printed to stdout, not stderr and command return code is zero, so it does not indicate that anything wrong happened.


Metadata Update from @tdawson:
- Issue assigned to tdawson

9 months ago

Thank you for reporting this.
I did not test this scenario when we were doing the name checking update. I apologize for that.
Looks like the fix is simple. I'll have an updated version out soon.

I should have said, the fix for the rpms/<package> is simple.
The error code and stderr stuff is more extensive.
Not necessarily complicated, but as I look through the code, it's done wrong all over the place.
I have created a separate issue for that.
https://git.centos.org/centos/centpkg/issue/81

centpkg-0.7.4-4 has the fix in it.
https://koji.fedoraproject.org/koji/buildinfo?buildID=2274429
https://koji.fedoraproject.org/koji/packageinfo?packageID=33454

I will close this ticket when the builds reach stable, which should be in a week or so.

thanks, I've tested 0.7.4-4 and it works

Metadata Update from @tdawson:
- Issue tagged with: Bug

9 months ago

centpkg-0.7.4-4 is now in stable for all supported releases.

Metadata Update from @tdawson:
- Issue status updated to: Closed (was: Open)

9 months ago

Login to comment on this ticket.

Metadata