Mailinglist Archive: opensuse-factory (914 mails)

< Previous Next >
Re: [opensuse-factory] New rpm macros to test package versions in spec files
  • From: Nikola Pajkovsky <npajkovsky@xxxxxxx>
  • Date: Thu, 01 Jun 2017 09:49:52 +0200
  • Message-id: <87o9u8b10f.fsf@suse.cz>

Bruno Friedmann <bruno@xxxxxxxxxxx> writes:

On mercredi, 31 mai 2017 20.07:26 h CEST Dominique Leuenberger / DimStar
wrote:
On Wed, 2017-05-31 at 17:01 +0200, Antonio Larrosa wrote:
Just wondering... let's do a small poll.
How would you call ...
1) The macro that has one argument (package name) and returns its
version number?

a) pkg_version
b) pkg_version_number
c) package_version
d) pkg_ver
other?

a) pkg_version

2) The macro that has 3 arguments (package_name, operator, version
number) and
tests
whether the condition is true or not?


f) pkg_vcmp (pkg_version_compare might even be the spelled out long
variant if needed)

vcmp is also used by zypper for example for a very similar action;
having the same acronym sounds reasonable to me.

I would go with

pkg_version
pkg_versioncmp

--
Nikola
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
References