[SCM] Debian package checker branch, master, updated. 2.5.0-rc2-122-g12888e8
The following commit has been merged in the master branch:
commit bf04f46bbbc25408e52c6f01a09fa5b6ebc55109
Author: Niels Thykier <niels@thykier.net>
Date: Mon Apr 11 20:25:00 2011 +0200
Fix check for root symlink in checks/symlink
diff --git a/checks/symlinks b/checks/symlinks
index 946f8b8..ce897a8 100644
--- a/checks/symlinks
+++ b/checks/symlinks
@@ -46,10 +46,10 @@ foreach my $file (@{$info->sorted_index}) {
my $target = $index_info->{link}//'';
my $mylink = $target;
# Should not happen (too often) - but just in case
- next unless $target or $target =~ m@^/++$@;
- $mylink =~ s,//+,/,g;
+ next unless $target;
+ $mylink =~ s,//++,/,g;
$mylink =~ s@/$@@o;
-
+ next if $mylink eq ''; # skip links to "/"
if ($target =~ m@^/@o){
# absolute link - remove the initial slash
--
Debian package checker
Reply to: