xbps_configure_pkg: do not chdir() twice.
--HG-- extra : convert_revision : e487a8be30f64cdf8000a736badbaecfbe4e99cc
This commit is contained in:
parent
6889198882
commit
1d84e6edfc
1 changed files with 0 additions and 6 deletions
|
@ -71,12 +71,6 @@ xbps_configure_pkg(const char *pkgname)
|
|||
printf("%sonfiguring package %s-%s...\n",
|
||||
reconfigure ? "Rec" : "C", pkgname, version);
|
||||
|
||||
if (strcmp(rootdir, "") == 0)
|
||||
rootdir = "/";
|
||||
|
||||
if (chdir(rootdir) == -1)
|
||||
return errno;
|
||||
|
||||
buf = xbps_xasprintf(".%s/metadata/%s/INSTALL",
|
||||
XBPS_META_PATH, pkgname);
|
||||
if (buf == NULL)
|
||||
|
|
Loading…
Reference in a new issue