diff options
| author | jhenrique09 <jhenrique09.mcz@hotmail.com> | 2020-01-16 12:23:09 -0300 |
|---|---|---|
| committer | Semavi Ulusoy <doc.divxm@gmail.com> | 2023-01-17 21:09:53 +0300 |
| commit | 03310a4e65cb8bb33e846a7cd13704834b8bac6b (patch) | |
| tree | 43247b9fc176f89512b905b8f5ee0cfa251370a1 | |
| parent | 89ff9b99c5ae44282ac9186975fceeba99e0b456 (diff) | |
updater: Don't fail when trying to run set_metadata
* That's ok if file not exists
Change-Id: I8fa43e8520e75916907d528f772eb4f624c1ae19
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
| -rw-r--r-- | updater/install.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/updater/install.cpp b/updater/install.cpp index 70a1235b..ee828e4b 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -934,8 +934,9 @@ static Value* SetMetadataFn(const char* name, State* state, struct stat sb; if (lstat(args[0].c_str(), &sb) == -1) { - return ErrorAbort(state, kSetMetadataFailure, "%s: Error on lstat of \"%s\": %s", name, - args[0].c_str(), strerror(errno)); + return StringValue("t"); + /*return ErrorAbort(state, kSetMetadataFailure, "%s: Error on lstat of \"%s\": %s", name, + args[0].c_str(), strerror(errno));*/ } struct perm_parsed_args parsed = ParsePermArgs(state, args); |
