mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] ptxd_ipkg_rev_smaller: fix compare with empty micro
Date: Wed, 19 Oct 2011 20:52:20 +0200	[thread overview]
Message-ID: <4E9F1C64.6040604@bwalle.de> (raw)
In-Reply-To: <20111019174624.GN7130@pengutronix.de>

Am 19.10.2011 19:46, schrieb Robert Schwebel:
> On Tue, Oct 18, 2011 at 04:42:46AM -0400, Jon Ringle wrote:
>> After more testing, I found that there were other situations where the version
>> comparison does not work well.
>>
>> I ended up replacing the implementation of ptxd_ipkg_rev_smaller() with
>> something much simpler, albeit dependent on dpkg that seems to work well:
>>
>> ptxd_ipkg_rev_smaller() {
>>      dpkg --compare-versions $1 lt $2
>> }
>
> Hmm, that makes us dependend on dpkg (and thus on Debian). PTXdist tries
> hard to run on any distribution, so I'm not happy with this.

Maybe Perl would be okay?

http://www.emdebian.org/trac/browser/current/target/dpkg/trunk/scripts/Dpkg/Version.pm?rev=6998

Seems to be quite official, and the Dpkg::ErrorHandling and 
Dpkg::Gettext could be easily removed.


Regards,
Bernhard

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2011-10-19 18:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-17 23:21 Jon Ringle
2011-10-18  8:42 ` Jon Ringle
2011-10-19 17:46   ` Robert Schwebel
2011-10-19 18:52     ` Bernhard Walle [this message]
2011-10-19 19:55       ` Jon Ringle
2011-10-20  6:10         ` Bernhard Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E9F1C64.6040604@bwalle.de \
    --to=bernhard@bwalle.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox