Package: aptitude Version: 0.4.5.4-1 Severity: minor Hi, [EMAIL PROTECTED]:~#] aptitude safe-upgrade foo E: The safe-upgrade command takes no arguments 255 [EMAIL PROTECTED]:~#] aptitude dist-upgrade foo Reading package lists... 6%
This looks like dist-upgrade should also give the error message since it doesn't work with individual packages: An aptitude dist-upgrade (or full-upgrade) <package> will result in the same as full-upgrade without <package>. The attached patch fixes this and results in the same error as safe-upgrade. I am not sure if this behaviour is intended since I know the patch would also break + - = for <package> on a dist-upgrade because of the argc check. Is this a bug in safe-upgrade then? Do I miss something? :) Cheers Nico --- System information. --- Architecture: i386 Kernel: Linux 2.6.20-1-686 Debian Release: lenny/sid 500 unstable debian.netcologne.de --- Package information. --- Depends (Version) | Installed ================================================-+-==================== libapt-pkg-libc6.5-6-4.4 | libc6 (>= 2.5-5) | 2.6-2 libgcc1 (>= 1:4.2-20070516) | 1:4.2-20070627-1 libncursesw5 (>= 5.4-5) | 5.6-3 libsigc++-2.0-0c2a (>= 2.0.2) | 2.0.17-2 libstdc++6 (>= 4.2-20070516) | 4.2-20070627-1 -- Nico Golde - http://ngolde.de - [EMAIL PROTECTED] - GPG: 0x73647CFF For security reasons, all text in this mail is double-rot13 encrypted.
--- cmdline_do_action.cc 2007-07-03 16:08:21.000000000 +0200 +++ cmdline_do_action_tmp.cc 2007-07-11 16:12:24.000000000 +0200 @@ -49,6 +49,10 @@ else if(!strcasecmp(argv[0], "full-upgrade") || !strcasecmp(argv[0], "dist-upgrade")) { + if(argc != 1){ + fprintf(stderr, _("E: The %s command takes no arguments\n"), argv[0]); + return -1; + } default_action=cmdline_install; dist_upgrade=true; }
pgpDcKLpRWrzA.pgp
Description: PGP signature