]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: install symlinks with valid targets on SUSE and Debian 26870/head
authorFranck Bui <fbui@suse.com>
Fri, 24 Mar 2023 12:46:24 +0000 (13:46 +0100)
committerFranck Bui <fbui@suse.com>
Sun, 26 Mar 2023 08:44:09 +0000 (10:44 +0200)
test/test-functions

index fbb35a84ad3343d46de98b2df28edf6c61c1179e..be87aaec2ad9b158a8baf7fdd192fe1ada6281a3 100644 (file)
@@ -1144,7 +1144,7 @@ install_debian_systemd() {
         ddebug "Install debian files from package $deb"
         for file in $files; do
             [ -e "$file" ] || continue
-            [ -d "$file" ] && continue
+            [ ! -L "$file" ] && [ -d "$file" ] && continue
             inst "$file"
         done
     done < <(grep -E '^Package:' "${SOURCE_DIR}/debian/control" | cut -d ':' -f 2)
@@ -1174,7 +1174,7 @@ install_suse_systemd() {
         ddebug "Install files from package $p"
         while read -r f; do
             [ -e "$f" ] || continue
-            [ -d "$f" ] && continue
+            [ ! -L "$file" ] && [ -d "$file" ] && continue
             inst "$f"
         done < <(rpm -ql "$p")
     done