aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJason Woodward2005-01-06 21:34:01 +0000
committerJason Woodward2005-01-06 21:34:01 +0000
commit6e5b7ecc9ddba14181646b237b9c514f309d24d7 (patch)
tree1099fd5d3d67ccd80520db698efcbda47297276b /src/main.c
parent5b562bc1d3e751a1527923afdb4d3600443146c3 (diff)
downloadslapt-get-6e5b7ecc9ddba14181646b237b9c514f309d24d7.tar.gz
added --remove-obsolete option for dist-upgrade (see FAQ #9 and #28)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 7532e14..78b9a8b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -58,6 +58,7 @@ int main( int argc, char *argv[] ){
{"S",0, 0, SHOW_STATS_OPT},
{"config",1, 0, CONFIG_OPT},
{"autoclean", 0, 0, AUTOCLEAN_OPT},
+ {"remove-obsolete", 0, 0, OBSOLETE_OPT},
{0, 0, 0, 0},
};
@@ -172,6 +173,9 @@ int main( int argc, char *argv[] ){
case AUTOCLEAN_OPT: /* clean old old package versions */
do_action = AUTOCLEAN;
break;
+ case OBSOLETE_OPT: /* remove obsolete packages */
+ global_config->remove_obsolete = 1;
+ break;
default:
usage();
exit(1);
@@ -305,6 +309,7 @@ void usage(void){
printf(" --print-uris - %s\n",_("print URIs only, do not download"));
printf(" --show-stats|-S - %s\n",_("show download statistics"));
printf(" --config [] - %s\n",_("specify alternate slapt-getrc location"));
+ printf(" --remove-obsolete - %s\n",_("remove obsolete packages (dist-upgrade only)"));
}
void version_info(void){