Redirect stdout from mtree to /dev/null; we don't really need to know
the list of directories being created when we install a package.
This commit is contained in:
parent
40b27503d8
commit
a9758dac1a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55367
@ -363,9 +363,9 @@ pkg_do(char *pkg)
|
||||
printf("Running mtree for %s..\n", PkgName);
|
||||
p = find_plist(&Plist, PLIST_CWD);
|
||||
if (Verbose)
|
||||
printf("mtree -U -f %s -d -e -p %s\n", MTREE_FNAME, p ? p->name : "/");
|
||||
printf("mtree -U -f %s -d -e -p %s >/dev/null\n", MTREE_FNAME, p ? p->name : "/");
|
||||
if (!Fake) {
|
||||
if (vsystem("/usr/sbin/mtree -U -f %s -d -e -p %s", MTREE_FNAME, p ? p->name : "/"))
|
||||
if (vsystem("/usr/sbin/mtree -U -f %s -d -e -p %s >/dev/null", MTREE_FNAME, p ? p->name : "/"))
|
||||
warnx("mtree returned a non-zero status - continuing");
|
||||
}
|
||||
unlink(MTREE_FNAME);
|
||||
|
Loading…
Reference in New Issue
Block a user