aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--doc/slapt-get.86
-rw-r--r--src/configuration.c1
-rw-r--r--src/configuration.h1
-rw-r--r--src/main.c19
5 files changed, 21 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 81d9c6b..8af0821 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
0.9.7i Dec 10, 2003
* added slapt-get source to example slapt-getrc
* updated source creation script, runs PACKAGESTXT and MD5 on all now
+ * added --disable-dep-check to skip the dependency checking
0.9.7h Dec 08, 2003
* updated FAQ
diff --git a/doc/slapt-get.8 b/doc/slapt-get.8
index b074a01..bfb5855 100644
--- a/doc/slapt-get.8
+++ b/doc/slapt-get.8
@@ -41,6 +41,9 @@ slapt-get \- frontend to pkgtools
[
.B --no-dep
]
+[
+.B --disable-dep-check
+]
.LP
.B targets:
[
@@ -107,6 +110,9 @@ Do not perform MD5 check sum on package. This is dangerous!
.TP
.B --no-dep
Ignore dependency failures on --install, --upgrade, or --dist-upgrade
+.TP
+.B --disable-dep-check
+Skip the dependency check
.SH TARGETS
.TP
.B --update
diff --git a/src/configuration.c b/src/configuration.c
index 254f470..90b8842 100644
--- a/src/configuration.c
+++ b/src/configuration.c
@@ -123,6 +123,7 @@ rc_config *read_rc_config(const char *file_name){
global_config->no_md5_check = 0;
global_config->dist_upgrade = 0;
global_config->no_dep = 0;
+ global_config->disable_dep_check = 0;
return global_config;
}
diff --git a/src/configuration.h b/src/configuration.h
index 41108b8..e2a6b61 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -44,6 +44,7 @@ struct _configuration {
int ignore_excludes;
int no_md5_check;
int no_dep;
+ int disable_dep_check;
};
typedef struct _configuration rc_config;
diff --git a/src/main.c b/src/main.c
index c156497..b01c5f8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -49,6 +49,7 @@ int main( int argc, char *argv[] ){
{"help",0, 0, 'l'},
{"h",0, 0, 'l'},
{"no-dep",0, 0, 'p'},
+ {"disable-dep-check",0, 0, 'q'},
};
int option_index = 0;
/* */
@@ -132,6 +133,9 @@ int main( int argc, char *argv[] ){
case 'p': /* no-dep */
global_config->no_dep = 1;
break;
+ case 'q': /* disable-dep-check */
+ global_config->disable_dep_check = 1;
+ break;
default:
usage();
exit(1);
@@ -248,13 +252,14 @@ void usage(void){
printf(" --version - %s\n",_("print version and license info"));
printf("\n");
printf(_("Options:\n"));
- printf(" --download-only - %s\n",_("only download pkg on install/upgrade"));
- printf(" --simulate - %s\n",_("show pkgs to be installed/upgraded"));
- printf(" --no-prompt - %s\n",_("do not prompt during install/upgrade"));
- printf(" --reinstall - %s\n",_("re-install the pkg"));
- printf(" --ignore-excludes - %s\n",_("install/upgrade excludes"));
- printf(" --no-md5 - %s\n",_("do not perform md5 check sum"));
- printf(" --no-dep - %s\n",_("ignore dependency failures"));
+ printf(" --download-only - %s\n",_("only download pkg on install/upgrade"));
+ printf(" --simulate - %s\n",_("show pkgs to be installed/upgraded"));
+ printf(" --no-prompt - %s\n",_("do not prompt during install/upgrade"));
+ printf(" --reinstall - %s\n",_("re-install the pkg"));
+ printf(" --ignore-excludes - %s\n",_("install/upgrade excludes"));
+ printf(" --no-md5 - %s\n",_("do not perform md5 check sum"));
+ printf(" --no-dep - %s\n",_("ignore dependency failures"));
+ printf(" --disable-dep-check - %s\n",_("skip dependency check"));
}
void version_info(void){