xbps_configure_pkg: do not chdir() twice.

--HG--
extra : convert_revision : e487a8be30f64cdf8000a736badbaecfbe4e99cc
This commit is contained in:
Juan RP 2009-08-17 16:06:13 +02:00
parent 6889198882
commit 1d84e6edfc
1 changed files with 0 additions and 6 deletions

View File

@ -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)