tag 215233 patch thanks [EMAIL PROTECTED]/dpkg--devel--1.13--patch-17 is attached.
Gruesse, -- Frank Lichtenheld <[EMAIL PROTECTED]> www: http://www.djpig.de/
* looking for [EMAIL PROTECTED]/dpkg--devel--1.13--patch-16 to compare with * comparing to [EMAIL PROTECTED]/dpkg--devel--1.13--patch-16 M man/C/dpkg-source.1 M debian/changelog M scripts/dpkg-gencontrol.pl M ChangeLog * modified files --- orig/ChangeLog +++ mod/ChangeLog @@ -1,3 +1,10 @@ +2005-10-03 Frank Lichtenheld <[EMAIL PROTECTED]> + + * scripts/dpkg-gencontrol: Make -isp the default + behaviour. + * man/C/dpkg-source.1: Document the behaviour + change in dpkg-gencontrol. + 2005-08-27 Frank Lichtenheld <[EMAIL PROTECTED]> * scripts/dpkg-gencontrol: Bail out with an error if parsedep --- orig/debian/changelog +++ mod/debian/changelog @@ -3,6 +3,9 @@ * Fixes to dpkg-dev (Frank Lichtenheld): - Let dpkg-gencontrol bail out with an error if parsedep found an error while parsing a dependency field. Closes: #228125 + - Make -isp the default behaviour of dpkg-gencontrol as it is + always used anyway these days. Suggested by Matthew Vernon. + Closes: #215233 -- --- orig/man/C/dpkg-source.1 +++ mod/man/C/dpkg-source.1 @@ -436,16 +436,13 @@ instead of the normal package_version_arch.deb filename. .TP .BR \-is ", " \-ip ", " \-isp -Include the -.BR Section " and " Priority -fields for this package from the main source control file in the -binary package control file being generated. Usually this information -is not included here, but only in the -.B .changes -file. -.B \-isp -includes both fields, -.BR \-is " only the " Section " and " \-ip " only the " Priority . +These options are ignored for compatibility with older versions of +dpkg-dev but are now deprecated. Previously they were used to tell +dpkg-gencontrol to include the Section and Priority fields in the +control file. This is now the default behaviour. If you want to +get the old behaviour you can use the +.B \-U +option to delete the fields from the control file. .TP .BI \-P packagebuilddir Tells --- orig/scripts/dpkg-gencontrol.pl +++ mod/scripts/dpkg-gencontrol.pl @@ -34,9 +34,7 @@ -P<packagebuilddir> temporary build dir instead of debian/tmp -n<filename> assume the package filename will be <filename> -O write to stdout, not .../DEBIAN/control - -is include section field - -ip include priority field - -isp|-ips include both section and priority + -is, -ip, -isp, -ips deprecated, ignored for compatibility -D<field>=<value> override or add a field and value -U<field> remove a field -V<name>=<value> set a substitution variable @@ -70,13 +68,8 @@ $forceversion= $1; } elsif (m/^-O$/) { $stdout= 1; - } elsif (m/^-is$/) { - $spinclude{'Section'}=1; - } elsif (m/^-ip$/) { - $spinclude{'Priority'}=1; - } elsif (m/^-isp$/ || m/^-ips$/) { - $spinclude{'Section'}=1; - $spinclude{'Priority'}=1; + } elsif (m/^-i[sp][sp]?$/) { + # ignored for backwards compatibility } elsif (m/^-F([0-9a-z]+)$/) { $changelogformat=$1; } elsif (m/^-D([^\=:]+)[=:]/) { @@ -200,7 +193,7 @@ for $f (qw(Section Priority)) { $spvalue{$f}= $spdefault{$f} unless length($spvalue{$f}); - $f{$f}= $spvalue{$f} if $spinclude{$f} && length($spvalue{$f}); + $f{$f}= $spvalue{$f} if length($spvalue{$f}); } for $f (qw(Package Version)) {