Bug 916581 - Any modify operation results in "Error: global name 'arg' is not defined"
Summary: Any modify operation results in "Error: global name 'arg' is not defined"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: packagedb-cli
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pierre-YvesChibon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-28 11:46 UTC by Petr Pisar
Modified: 2013-04-04 16:45 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-16 01:32:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2013-02-28 11:46:14 UTC
$ pkgdb-cli --debug unorphan --owner pavlix radvd devel 
Error: global name 'arg' is not defined

$ rpm -qf $(type -p pkgdb-cli)
packagedb-cli-1.4.0-1.fc18.noarch

That's probably problem some underlying library, but I don't know which one. I have enabled updates-testing repository.

Comment 1 Pierre-YvesChibon 2013-02-28 12:25:10 UTC
Fixed upstream, update building.

Thanks for the report!

Comment 2 Fedora Update System 2013-02-28 15:31:27 UTC
packagedb-cli-1.4.1-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/packagedb-cli-1.4.1-1.fc18

Comment 3 Fedora Update System 2013-02-28 15:31:41 UTC
packagedb-cli-1.4.1-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/packagedb-cli-1.4.1-1.el6

Comment 4 Fedora Update System 2013-02-28 15:31:54 UTC
packagedb-cli-1.4.1-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/packagedb-cli-1.4.1-1.fc17

Comment 5 Petr Pisar 2013-03-01 08:48:26 UTC
commit 8288fb52870cc5bb9ead681f2399e449e5b69dec
Author: Pierre-Yves Chibon <pingou>
Date:   Thu Feb 28 13:21:36 2013 +0100

    Fix typo, it should use args and not arg anymore

diff --git a/pkgdb-cli b/pkgdb-cli
index cf97865..6ead3aa 100755
--- a/pkgdb-cli
+++ b/pkgdb-cli
@@ -1149,8 +1149,9 @@ def do_update(args):
     answer = "Denied"
     if args.approve:
         answer = "Approved"
-    answer_acl_request(args.package, args.action, args.user,
-            answer, args.branch, arg.username, arg.password)
+    print args
+    #answer_acl_request(args.package, args.action, args.user,
+            #answer, args.branch, args.username, args.password)

Is the "print args" necessary?

Comment 6 Pierre-YvesChibon 2013-03-01 12:17:55 UTC
(In reply to comment #5)
> Is the "print args" necessary?

Of course it is... not :)

I guess I rushed too much into fixing this. Fixed in git with some other fixes from Toshio. I still have a couple of things to do and I'll do a 1.5.0 release (which might make it to stable this time).

Comment 7 Fedora Update System 2013-03-02 20:08:58 UTC
Package packagedb-cli-1.4.1-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing packagedb-cli-1.4.1-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3272/packagedb-cli-1.4.1-1.fc17
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2013-03-07 09:02:25 UTC
packagedb-cli-1.4.1-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/packagedb-cli-1.4.1-2.fc17

Comment 9 Fedora Update System 2013-03-07 09:02:47 UTC
packagedb-cli-1.4.1-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/packagedb-cli-1.4.1-2.fc18

Comment 10 Fedora Update System 2013-03-07 09:03:11 UTC
packagedb-cli-1.4.1-2.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/packagedb-cli-1.4.1-2.el5

Comment 11 Fedora Update System 2013-03-07 09:03:32 UTC
packagedb-cli-1.4.1-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/packagedb-cli-1.4.1-2.el6

Comment 12 Fedora Update System 2013-03-16 01:33:01 UTC
packagedb-cli-1.4.1-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2013-03-16 01:41:55 UTC
packagedb-cli-1.4.1-2.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2013-04-04 16:38:47 UTC
packagedb-cli-1.4.1-2.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2013-04-04 16:45:04 UTC
packagedb-cli-1.4.1-2.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.