PackageInstaller: rewrite /boot/beos/system to /boot/system
Fixes #10603.
This commit is contained in:
parent
e0dbadfc4e
commit
41bfed9f20
@ -187,6 +187,8 @@ PackageItem::InitPath(const char* path, BPath* destination)
|
|||||||
} else if (fPathType == P_SYSTEM_PATH) {
|
} else if (fPathType == P_SYSTEM_PATH) {
|
||||||
if (gVerbose)
|
if (gVerbose)
|
||||||
printf("InitPath - absolute: %s\n", fPath.String());
|
printf("InitPath - absolute: %s\n", fPath.String());
|
||||||
|
if (fPath == "")
|
||||||
|
fPath = "/";
|
||||||
ret = destination->SetTo(fPath.String());
|
ret = destination->SetTo(fPath.String());
|
||||||
} else {
|
} else {
|
||||||
if (gVerbose)
|
if (gVerbose)
|
||||||
@ -597,8 +599,11 @@ PackageScript::DoInstall(const char* path, ItemState* state)
|
|||||||
// but it would be less save. For example, an app
|
// but it would be less save. For example, an app
|
||||||
// could have a folder named "config/be..." inside
|
// could have a folder named "config/be..." inside
|
||||||
// its installation folder.
|
// its installation folder.
|
||||||
// TODO: Use find_paths() or we are no better than
|
// TODO: Use find_paths() or we are no better than
|
||||||
// these scripts.
|
// these scripts.
|
||||||
|
script.ReplaceAll(
|
||||||
|
"/boot/beos/system/",
|
||||||
|
"/boot/system/");
|
||||||
script.ReplaceAll(
|
script.ReplaceAll(
|
||||||
"~/config/be",
|
"~/config/be",
|
||||||
"~/config/settings/deskbar/menu");
|
"~/config/settings/deskbar/menu");
|
||||||
|
Loading…
Reference in New Issue
Block a user