From 9f8e15f77cf0206b225a2fee391658ed6b8a9eb7 Mon Sep 17 00:00:00 2001 From: Michal Suchanek Date: Mar 07 2023 14:54:41 +0000 Subject: Merge remote-tracking branch 'origin/users/syu/packaging/for-next' into packaging --- diff --git a/rpm/group-source-files.pl b/rpm/group-source-files.pl index 768ecff..89fa8e8 100755 --- a/rpm/group-source-files.pl +++ b/rpm/group-source-files.pl @@ -66,7 +66,7 @@ sub calc_dirs do { $path =~ s{/[^/]+$}{}; $dirs{$path} = 1; - } while ($path ne $base); + } while ($path ne $base and $path ne ""); # This loop also makes sure that $base itself is included. }