Lintian::Relation::Version - Online Linux Manual PageSection : 3
Updated : 2020-11-27
Source : Lintian v2.104.0
Note : Debian Package Checker
NAMELintian::Relation::Version − Comparison operators on Debian versions
SYNOPSIS print "yes\n" if versions_equal('1.0', '1.00');
print "yes\n" if versions_gte('1.1', '1.0');
print "no\n" if versions_lte('1.1', '1.0');
print "yes\n" if versions_gt('1.1', '1.0');
print "no\n" if versions_lt('1.1', '1.1');
print "yes\n" if versions_compare('1.1', '<=', '1.1');
DESCRIPTIONThis module provides five functions for comparing version numbers. The underlying implementation uses libapt−pkg−perl to ensure that the results match what dpkg will expect.
FUNCTIONSversions_equal(A, B) Returns true if A is equal to B (=) and false otherwise. versions_lte(A, B) Returns true if A is less than or equal (<=) to B and false otherwise. versions_gte(A, B) Returns true if A is greater than or equal (>=) to B and false otherwise. versions_lt(A, B) Returns true if A is less than (<<) B and false otherwise. versions_gt(A, B) Returns true if A is greater than (>>) B and false otherwise. versions_compare(A, OP, B) Returns true if A OP B, where OP is one of =, <=, >=, <<, or >>, and false otherwise. versions_comparator (A, B) Returns −1, 0 or 1 if the version A is (respectively) less than, equal to or greater than B. This is useful for (e.g.) sorting a list of versions: foreach my $version (sort versions_comparator @versions) {
...
}
AUTHOROriginally written by Russ Allbery <rra@debian.org> for Lintian and adapted to use libapt-pkg-perl by Adam D. Barratt <adam@adam−barratt−org.uk>.
SEE ALSOlintian (1) 0
Johanes Gumabo
Data Size : 8,823 byte
man-Lintian::Relation::Version.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 199,343
Visitor ID : :
Visitor IP : 18.117.104.132 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Lintian::Relation::Version.3|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Lintian::Relation::Version.3|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Lintian::Relation::Version.3|43|br══─}─══|'br══─}─══
) (htmlprn|149|Lintian::Relation::Version.3|43|'br══─}─══ |'br══─}─══
)