diff options
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | dpkg-split/info.c | 2 | ||||
-rw-r--r-- | man/deb-split.5 | 13 |
3 files changed, 10 insertions, 7 deletions
diff --git a/debian/changelog b/debian/changelog index 3f785d8c8..18b8d4358 100644 --- a/debian/changelog +++ b/debian/changelog @@ -25,6 +25,8 @@ dpkg (1.16.3) UNRELEASED; urgency=low * Handle deb format versions as major.minor integers instead of strings or floats, the latter being susceptible to parsing errors depending on the current locale (although this was only affecting the old deb format). + * Ignore the minor format version number for deb-split format, unifying + the behaviour with the deb format. [ Helge Kreutzmann ] * Fix a typo in man/dpkg-buildflags.1. diff --git a/dpkg-split/info.c b/dpkg-split/info.c index b2f12d549..05d0d88de 100644 --- a/dpkg-split/info.c +++ b/dpkg-split/info.c @@ -125,7 +125,7 @@ struct partinfo *read_info(FILE *partfile, const char *fn, struct partinfo *ir) nextline(&rip, fn, _("format version number"))); if (err) ohshit(_("file '%.250s' has invalid format version: %s"), fn, err); - if (ir->fmtversion.major != 2 || ir->fmtversion.minor != 1) + if (ir->fmtversion.major != 2) ohshit(_("file '%.250s' is format version %d.%d; get a newer dpkg-split"), fn, ir->fmtversion.major, ir->fmtversion.minor); diff --git a/man/deb-split.5 b/man/deb-split.5 index e52f6bf36..0e54eb296 100644 --- a/man/deb-split.5 +++ b/man/deb-split.5 @@ -1,6 +1,6 @@ .\" dpkg manual page - deb-split(5) .\" -.\" Copyright © 2009-2011 Guillem Jover <guillem@debian.org> +.\" Copyright © 2009-2012 Guillem Jover <guillem@debian.org> .\" .\" This is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see <http://www.gnu.org/licenses/>. . -.TH deb\-split 5 "2011-07-04" "Debian Project" "Debian" +.TH deb\-split 5 "2012-04-09" "Debian Project" "Debian" .SH NAME deb\-split \- Debian multi-part binary package format .SH SYNOPSIS @@ -48,11 +48,12 @@ parts (as in \(oq1/10\(cq). .IP \(bu The package architecture (since dpkg 1.16.1). .PP -Programs which read multi-part archives should be prepared for additional -lines to be present, and should ignore these if this is the case. +Programs which read multi-part archives should be prepared for the minor +format version number to be increased and additional lines to be present, +and should ignore these if this is the case. .PP -If the version number has changed, an incompatible change has been made -and the program should stop. If it has not, then the program should +If the major format version number has changed, an incompatible change has +been made and the program should stop. If it has not, then the program should be able to safely continue, unless it encounters an unexpected member in the archive (except at the end), as described below. .PP |