smart doesn't work with rpm-repackage option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Smart Package Manager |
New
|
Undecided
|
Unassigned |
Bug Description
Imported: http://
Reason: A patch was pasted. Has this been checked?
further details: https:/
msg1174 (view) Author: petersurda Date: 2007-07-27.11:22:03
I fixed it, gustavo seems too busy to respond to email, so I'm posting it here too:
--- /tmp/pm.py 2007-07-24 09:12:36.000000000 +0100
+++ /usr/lib/
10:41:20.000000000 +0100
@@ -280,7 +282,7 @@
def __init__(self, prog, upgradednames):
self.prog = prog
- self.data = {"item-number": 0}
+ self.data = {"item-number": 0, "repackage": False}
self.fd = None
@@ -352,16 +354,28 @@
elif what == rpm.RPMCALLBACK
- info, path = infopath
- pkg = info.getPackage()
+ if isinstance(
+ info, path = infopath
+ pkg = info.getPackage()
+ name = pkg.name
+ if isinstance(
+ name = infopath
- self.prog.
+ if self.data[
+ self.prog.
+ self.data[
+ else:
+ self.prog.
+ elif what == rpm.RPMCALLBACK
+ self.data[
+
elif (what == rpm.RPMCALLBACK
- what == rpm.RPMCALLBACK
+ what == rpm.RPMCALLBACK
+ what == rpm.RPMCALLBACK
msg1103 (view) Author: thimm Date: 2007-02-15.22:25:08
This was confirmed to still be an issue with 0.50.
msg1055 (view) Author: thimm Date: 2006-12-28.13:42:05
Copied over from https:/
=======
Opened by Igor Jagec (<email address hidden>) on 2006-12-01 20:06 EST [reply]
Description of problem:
SmartPM doesn't work with rpm-repackage option
Version-Release number of selected component (if applicable):
$ rpmgrep smart
fedora-
smart-0.
smart-gui-
smartmontools-
How reproducible:
Every time
Steps to Reproduce:
1. # smart upgrade -y
Actual results:
It fails to upgrade the system
Expected results:
To upgrade the system
Additional info:
# smart upgrade -y
Loading cache...
Updating cache... #######
Computing transaction...
Committing transaction...
Preparing... #######
Traceback (most recent call last):
File "/usr/bin/smart", line 194, in ?
main(
File "/usr/bin/smart", line 167, in main
exitcode = iface.run(
File "/usr/lib/
result = _command.
File "/usr/lib/
in main
ctrl.
File "/usr/lib/
commitTransaction
return self.commitChan
File "/usr/lib/
commitChangeSet
pmclass(
File "/usr/lib/
in commit
probs = ts.run(cb, None)
File "/usr/lib/
in __call__
info, path = infopath
ValueError: too many values to unpack
[root@localhost igor]# smart config --set rpm-repackage=false
[root@localhost igor]# smart upgrade -y
Loading cache...
Updating cache... #######
Computing transaction...
Committing transaction...
Preparing... #######
1:Installing openssl #######
2:Cleaning openssl #######
3:Installing dbus #######
4:Cleaning dbus #######
5:Installing freetype #######
6:Cleaning freetype #######
7:Installing hsqldb #######
8:Cleaning hsqldb #######
9:Installing gnome-session #######
10:Cleaning gnome-session #######
11:Installing dbus-x11 #######
12:Cleaning dbus-x11 #######
13:Installing freetype-devel #######
14:Cleaning freetype-devel #######
=======