[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#669591: apt: 'apt-get remove g++' is intrepreted as an install command (iprobably any package with a + at the end)



Package: apt
Version: 0.9.1
Severity: serious

Hi,

this is a regression from 0.8.x:

# apt-get --version
apt 0.9.1 for amd64 compiled on Apr 17 2012 09:51:18
...
# apt-get remove g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

# apt-get --version
apt 0.8.15.10 for amd64 compiled on Mar  6 2012 14:33:57
...
# apt-get remove g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgmp10 libmpfr4 g++-4.6 libgomp1 gcc-4.6 libquadmath0 cpp gcc libstdc++6-4.6-dev libc6-dev cpp-4.6 linux-libc-dev libc-dev-bin binutils libmpc2
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  g++
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 34.8 kB disk space will be freed.
(Reading database ... 8959 files and directories currently installed.)
Removing g++ ...

"remove g++" can be interpreted as
  remove g++ ({g++}-)
  install g+ ({g+}+)

iThe introduction of packages called 'g+' or 'g++-' could cause real ambiguity.


Andreas



Reply to: