xbps-bin(8): keep auto{remove,update} targets for compatibility.
This commit is contained in:
parent
c3f0bec3bd
commit
5fabb34a1f
4
NEWS
4
NEWS
@ -1,7 +1,9 @@
|
|||||||
xbps-0.16 (???):
|
xbps-0.16 (???):
|
||||||
|
|
||||||
* xbps-bin(8): renamed "autoupdate" target to "dist-upgrade" and
|
* xbps-bin(8): renamed "autoupdate" target to "dist-upgrade" and
|
||||||
"autoremove" to "remove-orphans".
|
"autoremove" to "remove-orphans". For compatibility with previous
|
||||||
|
versions the old targets are still kept, but will be removed in future
|
||||||
|
releases.
|
||||||
|
|
||||||
* Added support to put packages "on hold". Packages on hold
|
* Added support to put packages "on hold". Packages on hold
|
||||||
won't be updated by system upgrades even if there is a newer version.
|
won't be updated by system upgrades even if there is a newer version.
|
||||||
|
@ -333,7 +333,8 @@ main(int argc, char **argv)
|
|||||||
else
|
else
|
||||||
rv = check_pkg_integrity(NULL, argv[1], true, NULL);
|
rv = check_pkg_integrity(NULL, argv[1], true, NULL);
|
||||||
|
|
||||||
} else if (strcasecmp(argv[0], "dist-upgrade") == 0) {
|
} else if ((strcasecmp(argv[0], "dist-upgrade") == 0) ||
|
||||||
|
(strcasecmp(argv[0], "autoupdate") == 0)) {
|
||||||
/*
|
/*
|
||||||
* To update all packages currently installed.
|
* To update all packages currently installed.
|
||||||
*/
|
*/
|
||||||
@ -352,7 +353,8 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
rv = show_orphans();
|
rv = show_orphans();
|
||||||
|
|
||||||
} else if (strcasecmp(argv[0], "remove-orphans") == 0) {
|
} else if ((strcasecmp(argv[0], "remove-orphans") == 0) ||
|
||||||
|
(strcasecmp(argv[0], "autoremove") == 0)) {
|
||||||
/*
|
/*
|
||||||
* Removes orphan pkgs. These packages were installed
|
* Removes orphan pkgs. These packages were installed
|
||||||
* as dependency and any installed package does not depend
|
* as dependency and any installed package does not depend
|
||||||
|
Loading…
Reference in New Issue
Block a user