Explorar o código

allow hierarchial sections

Guy Maor %!s(int64=27) %!d(string=hai) anos
pai
achega
e04a641142
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      scripts/dpkg-scanpackages.pl

+ 3 - 0
scripts/dpkg-scanpackages.pl

@@ -145,6 +145,9 @@ while (<O>) {
     }
     $pv{$p,'Priority'}= $priority;
     $pv{$p,'Section'}= $section;
+    ($sectioncut = $section) =~ s:^[^/]*/::;
+    if (length($psubdir{$p}) && $section ne $psubdir{$p} &&
+	$sectioncut ne $psubdir{$p}) {
     if (length($psubdir{$p}) && $section ne $psubdir{$p}) {
         print(STDERR " !! Package $p has \`Section: $section',".
                      " but file is in \`$psubdir{$p}' !!\n") || die $!;