apk: honour --root command line switch

Was broken by earlier ROOT environment commit.
cute-signatures
Timo Teras 2009-01-13 09:31:27 +02:00
parent b8940df6b9
commit d16b424385
1 changed files with 2 additions and 1 deletions

View File

@ -115,6 +115,7 @@ int main(int argc, char **argv)
argc -= optind;
argv += optind;
if (apk_root == NULL)
apk_root = getenv("ROOT");
if (apk_root == NULL)
apk_root = "/";