[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#232317: marked as done ([DOC] Inaccurate info about dpkg --compare-versions)



Your message dated Wed, 02 Jun 2004 14:47:04 -0400
with message-id <E1BValU-0001Bn-00@newraff.debian.org>
and subject line Bug#232317: fixed in dpkg 1.10.22
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 12 Feb 2004 00:04:11 +0000
>From frederic.bothamy@free.fr Wed Feb 11 16:04:11 2004
Return-path: <frederic.bothamy@free.fr>
Received: from postfix4-2.free.fr [213.228.0.176] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Ar4Kw-0006FN-00; Wed, 11 Feb 2004 16:04:10 -0800
Received: from athena.olympe.fr (pereire-4-81-56-15-186.fbx.proxad.net [81.56.15.186])
	by postfix4-2.free.fr (Postfix) with ESMTP id E97F96AC78
	for <submit@bugs.debian.org>; Thu, 12 Feb 2004 01:04:05 +0100 (CET)
Received: from fred by athena.olympe.fr with local (Exim 3.35 #1 (Debian))
	id 1Ar4Kr-0003Mb-00
	for <submit@bugs.debian.org>; Thu, 12 Feb 2004 01:04:05 +0100
Date: Thu, 12 Feb 2004 01:04:05 +0100
From: =?iso-8859-1?Q?Fr=E9d=E9ric?= Bothamy <frederic.bothamy@free.fr>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: [DOC] Inaccurate info about dpkg --compare-versions
Message-ID: <20040212000405.GH496@athena.olympe.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
Sender: <fred@athena.olympe.fr>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_02_10 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-1.8 required=4.0 tests=HAS_PACKAGE,HTML_MESSAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_02_10
X-Spam-Level: 

Package: dpkg
Version: 1.10.18
Severity: minor
Tags: patch

Hello,

I think that the documentation of dpkg is not accurate enough about the
option --compare-versions and its handling no version. According to it,
I would first understand that :

$ dpkg --compare-versions gt 2

is allowed whereas an empty string is needed.

Here is a patch that should clarify it :

diff -u -r dpkg-1.10.18/main/main.c dpkg-1.10.18_new/main/main.c
--- dpkg-1.10.18/main/main.c	2003-10-25 22:03:21.000000000 +0200
+++ dpkg-1.10.18_new/main/main.c	2004-02-09 21:32:20.000000000 +0100
@@ -107,8 +107,8 @@
   --abort-after <n>              Abort after encountering <n> errors\n\
 \n\
 Comparison operators for --compare-versions are:\n\
- lt le eq ne ge gt       (treat no version as earlier than any version);\n\
- lt-nl le-nl ge-nl gt-nl (treat no version as later than any version);\n\
+ lt le eq ne ge gt       (treat empty version as earlier than any version);\n\
+ lt-nl le-nl ge-nl gt-nl (treat empty version as later than any version);\n\
  < << <= = >= >> >       (only for compatibility with control file syntax).\n\
 \n\
 Use `dselect' for user-friendly package management.\n"),
diff -u -r dpkg-1.10.18/man/en/dpkg.8.sgml dpkg-1.10.18_new/man/en/dpkg.8.sgml
--- dpkg-1.10.18/man/en/dpkg.8.sgml	2002-05-13 23:00:32.000000000 +0200
+++ dpkg-1.10.18_new/man/en/dpkg.8.sgml	2004-02-12 00:53:57.000000000 +0100
@@ -686,9 +686,9 @@
 	  operator. <command>dpkg</command> returns success (zero result) if
 	  the specified condition is satisfied, and failure (nonzero result)
 	  otherwise.  There are two groups of operators, which differ in how
-	  they treat a missing <option>ver1</option> or <option>ver2</option>.
-	  These treat no version as earlier than any version:
-	  <emphasis>lt le eq ne ge gt</emphasis>. These treat no version as
+	  they treat an empty <option>ver1</option> or <option>ver2</option>.
+	  These treat an empty version as earlier than any version:
+	  <emphasis>lt le eq ne ge gt</emphasis>. These treat an empy version as
 	  later than any version: <emphasis>lt-nl le-nl ge-nl gt-nl</emphasis>.
 	  These are provided only for compatibility with
 	  <filename>control</filename> file syntax: <emphasis>&lt; &lt;&lt;


Fred

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux hera 2.4.22 #1 Wed Nov 19 02:22:20 CET 2003 i686
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro

Versions of packages dpkg depends on:
ii  dselect                     1.10.18      a user tool to manage Debian packa
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an

-- no debconf information

---------------------------------------
Received: (at 232317-close) by bugs.debian.org; 2 Jun 2004 18:53:31 +0000
>From katie@ftp-master.debian.org Wed Jun 02 11:53:31 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BVarj-0007c5-00; Wed, 02 Jun 2004 11:53:31 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BValU-0001Bn-00; Wed, 02 Jun 2004 14:47:04 -0400
From: Scott James Remnant <scott@netsplit.com>
To: 232317-close@bugs.debian.org
X-Katie: $Revision: 1.49 $
Subject: Bug#232317: fixed in dpkg 1.10.22
Message-Id: <E1BValU-0001Bn-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Wed, 02 Jun 2004 14:47:04 -0400
Delivered-To: 232317-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 29

Source: dpkg
Source-Version: 1.10.22

We believe that the bug you reported is fixed in the latest version of
dpkg, which is due to be installed in the Debian FTP archive:

dpkg-dev_1.10.22_all.deb
  to pool/main/d/dpkg/dpkg-dev_1.10.22_all.deb
dpkg-doc_1.10.22_all.deb
  to pool/main/d/dpkg/dpkg-doc_1.10.22_all.deb
dpkg_1.10.22.dsc
  to pool/main/d/dpkg/dpkg_1.10.22.dsc
dpkg_1.10.22.tar.gz
  to pool/main/d/dpkg/dpkg_1.10.22.tar.gz
dpkg_1.10.22_i386.deb
  to pool/main/d/dpkg/dpkg_1.10.22_i386.deb
dselect_1.10.22_i386.deb
  to pool/main/d/dpkg/dselect_1.10.22_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 232317@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Scott James Remnant <scott@netsplit.com> (supplier of updated dpkg package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue,  1 Jun 2004 18:21:40 -0300
Source: dpkg
Binary: dpkg-doc dpkg dselect dpkg-dev dpkg-static
Architecture: source all i386
Version: 1.10.22
Distribution: unstable
Urgency: low
Maintainer: Dpkg Development <debian-dpkg@lists.debian.org>
Changed-By: Scott James Remnant <scott@netsplit.com>
Description: 
 dpkg       - Package maintenance system for Debian
 dpkg-dev   - Package building tools for Debian
 dpkg-doc   - Dpkg Internals Documentation
 dselect    - a user tool to manage Debian packages
Closes: 41554 81355 85079 85815 85818 96881 114946 120562 122910 133640 137719 140695 154422 175897 179648 192812 202997 204691 206163 211850 211856 212284 216695 217042 217823 218060 219623 221235 226800 226931 227169 229766 230242 230751 232317 232445 232639 232831 233282 235773 236331 237734 238483 241938 244624 245994 246103 246158 246159 246160 246161 246162 246163 246164 246359 246595 246857 247086 247116 248483 249254 249454 250176 250281 251830
Changes: 
 dpkg (1.10.22) unstable; urgency=low
 .
   The DebConf4 Release.
 .
   This release is mostly intended to mop up the minor and trivial bug
   fixes in the list and clear out the documentation changes.  As such,
   it should be treated with even more suspicion than is normal.
 .
   * Use colouring to break cycles earlier to avoid long loops whilst
     installing or configuring packages.  Closes: #232445, #246857.
   * Don't try to configure packages that disappeared in the same
     run.  Closes: #202997.
   * Fix segfault when "gcc -dumpmachine" returns a non-matching triplet.
     Closes: #211850.
   * Remove restriction that package names be at least two characters long.
     Closes: #237734.
   * Fix dpkg-source (actually controllib.pl) to output the field name
     properly again.  Closes: #226931, #246595.
   * Make dpkg-scanpackages output Origin and Bugs fields with proper
     casing.  Closes: #154422.
   * Add support for DOS line-endings to md5sum.  Closes: #246103.
   * Fix start-stop-daemon segfault on Hurd.  Closes: #133640.
   * Allow dpkg-shlibdeps to run as non-root users.  Closes: #96881.
   * Correct various compiler warnings.  Closes: #229766.
 .
   * Architecture Support:
     - Added x86-64 (x86_64 / amd64).  Closes: #238483, #241938.
     - Added i?86-gnu (Hurd).  Closes: #216695, #236331.
     - Added i386-kfreebsd-gnu and i386-knetbsd-gnu.  Closes: #250176.
   * Packaging:
     - Create $(docdir) even when --without-sgml-doc is passed so the
       ChangeLog can be installed.  Closes: #137719.
     - Stop hardcoding the list of manual page languages in debian/rules,
       so we include Spanish, Russian and Brazilian Portugese.  Closes: #245994.
     - Quote LDFLAGS in debian/rules to allow multiple options.
       Closes: #230242.
   * Documentation:
     - Move dpkg-scanpackages and dpkg-scansources to section 1 as they
       are user tools.  Closes: #114946.
     - Correct hyphen characters in manpages.  Closes: #212284, #247086, #226800.
     - Remove obsolete references to the Debian Packaging Manual.
       Closes: #122910, #140695.
     - Correct 'n' and 'p' key descriptions in dselect help message.
       Closes: #120562.
     - Add --force-bad-verify to dpkg manpage.  Closes: #192812.
     - Correct dpkg manpage to refer to --force-remove-reinstreq instead of
       -non-existant --force-reinstreq option.  Closes: #232831.
     - Correct documentation of --compare-versions arguments.  Closes: #232317.
     - Correct usage of "et al" to "et al.".  Closes: #230751.
     - Add dpkg-reconfigure(8) to SEE ALSO section of dpkg(8).  Closes: #233282.
     - Suggest packages that provide additional functionality in the dpkg
       manpage.  Closes: #81355.
     - Suggest dselect update in description of dpkg --update-avail.
       Closes: #206163.
     - Suggest aptitude as well as dselect.  Closes: #217042.
     - Suggest fakeroot for dpkg-source -r.  Closes: #175897.
     - Correct documentation of start-stop-daemon.  Closes: #41554, #211856.
     - Correct documentation of start-stop-daemon manpage to refer to --retry
       alongside --stop.  Closes: #204691.
     - Add note that start-stop-daemon will chdir("/") unless -d is specified.
       Closes: #217823, #218060.
     - Correct documentation of dpkg-query --list.  Closes: #232639.
     - Correct invalid use of &quot; within update-alternatives(8) with .BR.
       Closes: #244624.
     - Rewrite description of dpkg-source -i to indicate the intent of the
       default setting rather than the exact exclusions.  Closes: #227169.
     - Correct documentation of dpkg-statoverride --update.  Closes: #85079.
     - Correct documentation of update-alternatives --install.  Closes: #179648.
     - Documented dpkg:Version and dpkg:UpstreamVersion substvars.
       Closes: #85815, #85818.
     - Fix spelling error in utils/md5sum.1.  Closes: #250281.
     - Replace "&c." with the slightly clearer "etc.".  Closes: #235773.
     - Correct various typos.  Closes: #219623, #221235.
   * Updated Translations:
     - Catalan (Jordi Mallach).
     - French (Christian Perrier).  Closes: #246359.
     - Italian (Lele Gaifax).
     - Japanese manpages (KISE Hiroshi).  Closes: #248483.
     - Russian (Nikolai Prokoschenko).  Closes: #249254.
     - Spanish manpages (Ruben Porras).  Closes: #246158, #246159, #246160,
       #246161, #246162, #246163, #251830.
   * New Translations:
     - German start-stop-daemon and update-alternatives manpages
       (Helge Kreutzmann).  Closes: #247116, #249454.
     - Spanish dpkg-scansources manpage (Ruben Porras).  Closes: #246164.
Files: 
 30f042fc1f3db3d9143438f4e2306149 798 base required dpkg_1.10.22.dsc
 2fc62cd054f1be7d1f8cb8073262a120 1714586 base required dpkg_1.10.22.tar.gz
 4bc9129933db0c7b0785a489c97731dc 1276700 base required dpkg_1.10.22_i386.deb
 e0475bfa90adb09db43e61eda465c362 119716 base required dselect_1.10.22_i386.deb
 0d64ddb21e386e1b126e5aaa2e9706c4 166218 utils standard dpkg-dev_1.10.22_all.deb
 acccec3738feda8e1ff7ad3fe7db005c 10616 doc optional dpkg-doc_1.10.22_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAvPQ3IexP3IStZ2wRAuqZAJ4mE9ylYoJBuLl0YV6SVGo71zTBRACgqqy9
0KbAumIvcM1r4tuxlS3RWPE=
=VO/U
-----END PGP SIGNATURE-----



Reply to: