diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2007-11-10 09:40:39 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2007-11-10 09:40:39 +0000 |
commit | 2cd24b447e19d6d3771d57fa83f397a81a0b6c5a (patch) | |
tree | 9a6bf6a76416333e12264c41f6d11dd1c90a3010 /usr.sbin/pkg_install/add/perform.c | |
parent | 989cbe408e49c5df742e070c75da4ce5316902d1 (diff) |
Add -i option for package installation without fetching and
installing its dependencies.
PR: bin/117065
Submitted by: Vladimir Ermakov <samflanker@gmail.com>
MFC after: 14 days
Notes
Notes:
svn path=/head/; revision=173513
Diffstat (limited to 'usr.sbin/pkg_install/add/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/add/perform.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c index 2404e8186b49..3b357fcbbfac 100644 --- a/usr.sbin/pkg_install/add/perform.c +++ b/usr.sbin/pkg_install/add/perform.c @@ -252,6 +252,7 @@ pkg_do(char *pkg) } /* Now check the packing list for conflicts */ + if(!IgnoreDeps){ for (p = Plist.head; p != NULL; p = p->next) { if (p->type == PLIST_CONFLICTS) { int i; @@ -296,7 +297,7 @@ pkg_do(char *pkg) !(deporigin != NULL && matchbyorigin(deporigin, NULL) != NULL)) { char path[FILENAME_MAX], *cp = NULL; - if (!Fake) { + if (!Fake&&!IgnoreDeps) { char prefixArg[2 + MAXPATHLEN]; /* "-P" + Prefix */ if (PrefixRecursive) { strlcpy(prefixArg, "-P", sizeof(prefixArg)); @@ -368,6 +369,7 @@ pkg_do(char *pkg) else if (Verbose) printf(" - already installed.\n"); } + } if (code != 0) goto bomb; @@ -514,6 +516,7 @@ pkg_do(char *pkg) depnames[0] = p->name; depnames[1] = NULL; } + if(!IgnoreDeps){ for (i = 0; depnames[i] != NULL; i++) { sprintf(contents, "%s/%s/%s", LOG_DIR, depnames[i], REQUIRED_BY_FNAME); @@ -531,6 +534,7 @@ pkg_do(char *pkg) } } } + } if (Verbose) printf("Package %s registered in %s\n", Plist.name, LogDir); } |