Просмотр исходного кода

dpkg-gencontrol (spfileslistvalue): Add prototype, move to the top of the file

Guillem Jover лет назад: 18
Родитель
Сommit
f9b5fefd15
2 измененных файлов с 12 добавлено и 5 удалено
  1. 5 0
      ChangeLog
  2. 7 5
      scripts/dpkg-gencontrol.pl

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2007-11-29  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-gencontrol.pl (spfileslistvalue): Add prototype. Move
+	to the top of the file with the other functions.
+
 2007-11-29  Guillem Jover  <guillem@debian.org>
 
 	* src/main.c (log_file): Move definition to ...

+ 7 - 5
scripts/dpkg-gencontrol.pl

@@ -84,6 +84,13 @@ Options:
 "), $progname;
 }
 
+sub spfileslistvalue($)
+{
+    my $r = $spvalue{$_[0]};
+    $r = '-' if !defined($r);
+    return $r;
+}
+
 
 while (@ARGV) {
     $_=shift(@ARGV);
@@ -381,8 +388,3 @@ if (!$stdout) {
         syserr(_g("cannot install output control file \`%s'"), $cf);
 }
 
-sub spfileslistvalue {
-    my $r = $spvalue{$_[0]};
-    $r = '-' if !defined($r);
-    return $r;
-}