Przeglądaj źródła

allow hierarchial sections

Guy Maor 27 lat temu
rodzic
commit
e04a641142
1 zmienionych plików z 3 dodań i 0 usunięć
  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 $!;