When installing package from a local file assume that all subsequent
autoinstalled dependencies will have the same extension, not just ".tbz". Pointy hat to: obrien X-MFC after: -1 day
This commit is contained in:
parent
f8a4c9012c
commit
76b27d2150
@ -267,8 +267,12 @@ pkg_do(char *pkg)
|
||||
|
||||
if (!Fake) {
|
||||
if (!isURL(pkg) && !getenv("PKG_ADD_BASE")) {
|
||||
/* XXX: need to handle .tgz also */
|
||||
snprintf(path, FILENAME_MAX, "%s/%s.tbz", getenv("_TOP"), p->name);
|
||||
const char *ext;
|
||||
|
||||
ext = strrchr(pkg_fullname, '.');
|
||||
if (ext == NULL)
|
||||
ext = ".tbz";
|
||||
snprintf(path, FILENAME_MAX, "%s/%s%s", getenv("_TOP"), p->name, ext);
|
||||
if (fexists(path))
|
||||
cp = path;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user