Bug 97432 - With Gentoo, can't uninstall only one selected version
Summary: With Gentoo, can't uninstall only one selected version
Status: RESOLVED FIXED
Alias: None
Product: kpackage
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Toivo Pedaste
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 15:09 UTC by Frédéric COIFFIER
Modified: 2005-07-01 01:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric COIFFIER 2005-01-19 15:09:11 UTC
Version:           3.3.2 (using KDE KDE 3.3.2)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) 
OS:                Linux

With kpackage from kdeadmin-3.3.2 with Gentoo system, we can have the following example :

Package installed :
- ...
- kdetoys-3.2.0
- kdetoys-3.3.2
- ...

If I select kdetoys-3.2.0 and make "Uninstall all selected packages", Kpackage will uninstall all kdetoys package even kdetoys-3.3.2.

I think kpackage should uninstall only the selected versions.
Comment 1 Henk de Leeuw 2005-03-31 16:00:50 UTC
I can confirm that this has not yet been resolved in KDE 3.4
Comment 2 Toivo Pedaste 2005-04-01 03:01:27 UTC
Yes I know it's not fixed. I didn't write the GENTOO code, I'll have a look at it.
Comment 3 Richard Lärkäng 2005-07-01 01:06:52 UTC
SVN commit 430329 by larkang:

Install/Uninstall correct version
BUG: 97432


 M  +4 -2      gentooInterface.cpp  


--- trunk/KDE/kdeadmin/kpackage/gentooInterface.cpp #430328:430329
@@ -421,7 +421,8 @@
     cmd = "NOCOLOR=\"true\" emerge unmerge ";
 
   for (pk = plist->first(); pk != 0; pk = plist->next()) {
-    cmd += pk->getProperty("name")+"-"+pk->getProperty("version") + " ";
+    cmd += "=" + pk->getProperty("group") + "/" + pk->getProperty("name") +
+      "-" + pk->getProperty("version") + " ";
   }
   return cmd;
 }
@@ -438,7 +439,8 @@
     cmd = "NOCOLOR=\"true\" emerge ";
 
   for (pk = plist->first(); pk != 0; pk = plist->next()) {
-    cmd += pk->getProperty("name") + " ";
+    cmd += "=" + pk->getProperty("group") + "/" + pk->getProperty("name") +
+      "-" + pk->getProperty("version") + " ";
   }
   return cmd;
 }