#18 pkgdb-cli does not work with a new pkgdb2 server
Closed: Fixed None Opened 9 years ago by ppisar.

packagedb-cli-1.7.0-1.fc20.noarch does not work:

{{{
$ /bin/pkgdb-cli acl --noextra bash
ServerError(https://admin.fedoraproject.org/pkgdb/acls/name/bash, 404, Not Found)
}}}

The git version (v2.1-1-gb1364d1) does not work:

{{{
$ python pkgdb2_cli.py acl --noextra bash
No package found on these branches: devel
}}}

Has rawhide identifier changed?

{{{
$ python pkgdb2_cli.py branches
el5 Fedora EPEL 5 Active
el6 Fedora EPEL 6 Active
f19 Fedora 19 Active
f20 Fedora 20 Active
epel7 Fedora EPEL 7 Under Development
master Fedora devel Under Development
Total: 6 collections
}}}

Probably. But still there is a failure:

{{{
$ python pkgdb2_cli.py acl --noextra bash master
Fedora Package Database -- bash
The GNU Bourne Again shell

master Point of Contact: ooprala
watchbugzilla watchcommits commit approveacls
ACLs:
Error: local variable 'aclout' referenced before assignment
ERROR:root:Generic error catched:
Traceback (most recent call last):
File "pkgdb2_cli.py", line 669, in main
arg.func(arg)
File "pkgdb2_cli.py", line 426, in do_acl
tmp = tmp + aclout + " " * 8
UnboundLocalError: local variable 'aclout' referenced before assignment
}}}


Good catch, the 'devel' branch name was indeed changed to master to reflect what's in git. So that's the first bug.

The second I'll need to investigate a bit more.

Thanks for the report!

Ok fixed in git, let me know if you find something else otherwise I'll do a new release a bit later today.

Thanks again!

This is fixed in 2.2 release on pypi and available on koji/bodhi

Login to comment on this ticket.

Metadata