aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1993-09-12 20:56:40 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1993-09-12 20:56:40 +0000
commit77277aa67e755a79973c7e536d63ebce3fe1be92 (patch)
tree7710e724f13de028d3303557a44b93c1fda96db0 /usr.sbin/pkg_install
parent599bf623a8aad59036091a1f437f57643daf5883 (diff)
downloadsrc-77277aa67e755a79973c7e536d63ebce3fe1be92.tar.gz
src-77277aa67e755a79973c7e536d63ebce3fe1be92.zip
Whoops - got the exclude flag wrong, try again.
Notes
Notes: svn path=/head/; revision=447
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/create/perform.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c
index 4744a9864abe..8b0f73be3f50 100644
--- a/usr.sbin/pkg_install/create/perform.c
+++ b/usr.sbin/pkg_install/create/perform.c
@@ -139,18 +139,21 @@ make_dist(char *home, char *pkg, char *suffix, Package *plist)
{
char tball[FILENAME_MAX];
char args[10];
+ int ret;
args[0] = '\0';
- if (ExcludeFrom)
- sprintf(args, "-X %s ", ExcludeFrom);
sprintf(tball, "%s/%s.%s", home, pkg, suffix);
if (index(suffix, 'z')) /* Compress/gzip? */
strcat(args, "z");
if (Verbose)
printf("Creating gzip'd tar ball in '%s', contents:\n", tball);
strcat(args, "cf");
- if (vsystem("tar %s %s .", args, tball))
- barf("tar command failed!");
+ if (ExcludeFrom)
+ ret = vsystem("tar %sX %s %s .", args, tball, ExcludeFrom);
+ else
+ ret = vsystem("tar %s %s .", args, tball);
+ if (ret)
+ barf("tar command failed with code %d", ret);
}
static void