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

don't print version twice on --help

Wichert Akkerman лет назад: 26
Родитель
Сommit
99670d217e
2 измененных файлов с 7 добавлено и 4 удалено
  1. 4 0
      ChangeLog
  2. 3 4
      scripts/dpkg-divert.pl

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+Mon Sep 25 16:19:05 CEST 2000 Wichert Akkerman <wakkerma@debian.org>
+
+  * scripts/dpkg-divert.pl: don't print version twice on --help
+
 Thu Sep 21 16:29:32 CEST 2000 Wichert Akkerman <wakkerma@debian.org>
 
   * debian/shlibs-default.template: removed

+ 3 - 4
scripts/dpkg-divert.pl

@@ -13,10 +13,9 @@ sub showversion {
 
 sub usage {
     &showversion;
-    print(STDERR <<END)
-"Debian dpkg-divert $version.
+    print STDERR <<EOF
 Copyright (C) 1995 Ian Jackson.
-Copyright (C) 2000 Wichert Akkerman
+Copyright (C) 2000 Wichert Akkerman.
 
 This is free software; see the GNU General Public Licence version 2 or later
 for copying conditions. There is NO warranty.
@@ -42,7 +41,7 @@ Options:
 When adding, default is --local and --divert <original>.distrib.
 When removing, --package or --local and --divert must match if specified.
 Package preinst/postrm scripts should always specify --package and --divert.
-END
+EOF
         || &quit("failed to write usage: $!");
 }