diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:40:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:40:30 +0000 |
commit | 396478fcc2ed755e02e2573c8be89e9a98aec512 (patch) | |
tree | 5f3b06ddc745429831d93323182288ade533804f /src/main/script.c | |
parent | Adding debian version 1.22.4. (diff) | |
download | dpkg-396478fcc2ed755e02e2573c8be89e9a98aec512.tar.xz dpkg-396478fcc2ed755e02e2573c8be89e9a98aec512.zip |
Merging upstream version 1.22.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/main/script.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/script.c b/src/main/script.c index b4f369d..017d92e 100644 --- a/src/main/script.c +++ b/src/main/script.c @@ -358,13 +358,11 @@ maintscript_fallback(struct pkginfo *pkg, } warning(_("unable to stat %s '%.250s': %s"), cmd.name, oldscriptpath, strerror(errno)); - } else { - if (!maintscript_exec(pkg, &pkg->installed, &cmd, &stab, SUBPROC_WARN)) { - command_destroy(&cmd); - free(buf); - post_script_tasks(); - return 1; - } + } else if (!maintscript_exec(pkg, &pkg->installed, &cmd, &stab, SUBPROC_WARN)) { + command_destroy(&cmd); + free(buf); + post_script_tasks(); + return 1; } notice(_("trying script from the new package instead ...")); |