Преглед изворни кода

Deprecate support of substvars in dpkg-source and dpkg-genchanges

Raphael Hertzog пре 18 година
родитељ
комит
4dc99c5629
4 измењених фајлова са 15 додато и 0 уклоњено
  1. 5 0
      ChangeLog
  2. 8 0
      README.feature-removal-schedule
  3. 1 0
      scripts/dpkg-genchanges.pl
  4. 1 0
      scripts/dpkg-source.pl

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-01-27  Raphael Hertzog  <hertzog@debian.org>
+
+	* README.feature-removal-schedule: Deprecate support of substvars
+	in dpkg-source and dpkg-genchanges.
+
 2008-01-27  Raphael Hertzog  <hertzog@debian.org>
 
 	* scripts/Dpkg/Shlibs/SymbolFile.pm: Replace has_new_libs(),

+ 8 - 0
README.feature-removal-schedule

@@ -63,3 +63,11 @@ Warning: none
 Why:
  This option has been superseded by -tudeb.
 
+What: substvars support in dpkg-source and dpkg-genchanges
+Status: deprecated
+When: lenny+1
+Warning: program
+Why:
+ substvars do not make sense during generation of .dsc and .changes files.
+ This also means that it won't be possible anymore to override the Format
+ field output by dpkg-genchanges.

+ 1 - 0
scripts/dpkg-genchanges.pl

@@ -159,6 +159,7 @@ while (@ARGV) {
 	$since= $POSTMATCH;
     } elsif (m/^-T/) {
 	$varlistfile= $POSTMATCH;
+	warning(_g("substvars support is deprecated (see README.feature-removal-schedule)"));
     } elsif (m/^-m/) {
 	$forcemaint= $POSTMATCH;
     } elsif (m/^-e/) {

+ 1 - 0
scripts/dpkg-source.pl

@@ -253,6 +253,7 @@ while (@ARGV && $ARGV[0] =~ m/^-/) {
         $substvars->set($1, $POSTMATCH);
     } elsif (m/^-T/) {
 	$varlistfile = $POSTMATCH;
+	warning(_g("substvars support is deprecated (see README.feature-removal-schedule)"));
     } elsif (m/^-(h|-help)$/) {
         &usage; exit(0);
     } elsif (m/^--version$/) {