diff --git a/ChangeLog-current.txt b/ChangeLog-current.txt index c26e173..3ad02e4 100644 --- a/ChangeLog-current.txt +++ b/ChangeLog-current.txt @@ -24,7 +24,7 @@ enhancements: evals and conditionals in check_for_updates and info_item. * Fixed a bug which could result in some sources being missed when checking for obsolete sources. - * Added a command line option '-O' to access the 'remove uninstalled + * Added a command line option '-P' to access the 'remove uninstalled packages' function which had previously only been accessible from the dialog interface. +--------------------------+ diff --git a/src/usr/man/man8/sbopkg.8 b/src/usr/man/man8/sbopkg.8 index 29a0260..2eddcb9 100644 --- a/src/usr/man/man8/sbopkg.8 +++ b/src/usr/man/man8/sbopkg.8 @@ -180,11 +180,6 @@ versions of installed packages. .B -l Display the SBo ChangeLog.txt and quit. -.TP 5 -.B -O -List the cached package files which are not currently installed on the -system and optionally delete them. - .TP 5 .B -o List the currently installed cached source files which are deemed as @@ -199,6 +194,11 @@ used to identify the obsoleted sources, so if you build packages with different repositories (e.g. for different Slackware versions) the source files only used in the "other" repository will be listed. +.TP 5 +.B -P +List the cached package files which are not currently installed on the +system and optionally delete them. + .TP 5 .B -p List installed SlackBuilds.org packages. diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index afee066..bd4ce50 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -4414,7 +4414,7 @@ else fi # This is the command line options and help. -while getopts ":b:cd:e:f:g:hi:klOopqrRs:uV:v" OPT; do +while getopts ":b:cd:e:f:g:hi:kloPpqrRs:uV:v" OPT; do case $OPT in b ) # Build BFLAG=1 @@ -4454,14 +4454,14 @@ while getopts ":b:cd:e:f:g:hi:klOopqrRs:uV:v" OPT; do CHANGELOG=1 unset DIAG ;; - O ) # Show uninstalled packages - UNINSTPKG=1 - unset DIAG - ;; o ) # Show obsolete sources OBSOLETESRC=1 unset DIAG ;; + P ) # Show uninstalled packages + UNINSTPKG=1 + unset DIAG + ;; p ) # List installed SBo packages GETPKGS=1 unset DIAG @@ -4511,9 +4511,9 @@ Options are: -i pkg/queue(s) Like '-b', but also install built packages. -k Skip installed packages when building. -l Display the repo's ChangeLog.txt and then quit. - -O Display the uninstalled package files & prompt for deletion. -o Display the obsolete source files & prompt for deletion. - -p List installed repo's packages. + -P List uninstalled cached package files & prompt for deletion. + -p List installed packages from active repo. -q Quiet some of the command-line output. -r Sync the remote repository with the local mirror and then quit.