This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=76ec88f03715c911509b3f55eee22d9b10e215a3

commit 76ec88f03715c911509b3f55eee22d9b10e215a3
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Sep 13 17:59:44 2025 +0200

    dselect: Do not mix high and low-precedence boolean operators
    
    Changelog: internal
    Warned-by: perlcritic
    Fixes: ValuesAndExpressions::ProhibitMixedBooleanOperators
---
 dselect/methods/media/install.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dselect/methods/media/install.sh b/dselect/methods/media/install.sh
index ea829894d..7b54230da 100755
--- a/dselect/methods/media/install.sh
+++ b/dselect/methods/media/install.sh
@@ -272,7 +272,10 @@ perl -MDpkg::Version -MDselect::Method::Media -e '
                         $disk = get_disk_label($mountpoint, $hierbase);
                }
 
-               -d "tmp" || mkdir "tmp", 0755 or die("Cannot mkdir tmp: $!\n");
+                if (! -d "tmp") {
+                    mkdir "tmp", 0755
+                        or die("Cannot mkdir tmp: $!\n");
+                }
                unlink <tmp/*>;
 
                print "creating symlinks...\n";

-- 
Dpkg.Org's dpkg

Reply via email to