Bug 97432

Summary: With Gentoo, can't uninstall only one selected version
Product: kpackage Reporter: Frédéric COIFFIER <frederic.coiffier>
Component: generalAssignee: Toivo Pedaste <toivo>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

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;
 }