Merge "recovery: Remove obsolete code that supports "CACHE:foo" format."
This commit is contained in:
commit
594dc4f5be
1 changed files with 1 additions and 21 deletions
22
recovery.cpp
22
recovery.cpp
|
@ -1525,27 +1525,7 @@ int main(int argc, char **argv) {
|
||||||
for (const auto& arg : args) {
|
for (const auto& arg : args) {
|
||||||
printf(" \"%s\"", arg.c_str());
|
printf(" \"%s\"", arg.c_str());
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n\n");
|
||||||
|
|
||||||
if (update_package) {
|
|
||||||
// For backwards compatibility on the cache partition only, if
|
|
||||||
// we're given an old 'root' path "CACHE:foo", change it to
|
|
||||||
// "/cache/foo".
|
|
||||||
if (strncmp(update_package, "CACHE:", 6) == 0) {
|
|
||||||
int len = strlen(update_package) + 10;
|
|
||||||
char* modified_path = (char*)malloc(len);
|
|
||||||
if (modified_path) {
|
|
||||||
strlcpy(modified_path, "/cache/", len);
|
|
||||||
strlcat(modified_path, update_package+6, len);
|
|
||||||
printf("(replacing path \"%s\" with \"%s\")\n",
|
|
||||||
update_package, modified_path);
|
|
||||||
update_package = modified_path;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
printf("modified_path allocation failed\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
printf("\n");
|
|
||||||
|
|
||||||
property_list(print_property, NULL);
|
property_list(print_property, NULL);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
Loading…
Reference in a new issue