classabbyamp
50fb2017d0
xbps-uhelper: add verbose output for cmpver/pkgmatch
I can never remember which retval means which thing. This only prints if
-v/--verbose is specified.
Examples:
```
$ ./bin/xbps-uhelper/xbps-uhelper -v cmpver 1 2 ; echo ret: $?
1 < 2
ret: 255
$ ./bin/xbps-uhelper/xbps-uhelper -v cmpver 1 1 ; echo ret: $?
1 = 1
ret: 0
$ ./bin/xbps-uhelper/xbps-uhelper -v cmpver 2 1 ; echo ret: $?
2 > 1
ret: 1
$ ./bin/xbps-uhelper/xbps-uhelper -v pkgmatch 'foo-1.0_1' 'foo>=0' ; echo ret: $?
foo-1.0_1 matches foo>=0
ret: 1
$ ./bin/xbps-uhelper/xbps-uhelper -v pkgmatch 'foo-1.0_1' 'foo<0.1_1' ; echo ret: $?
foo-1.0_1 does not match foo<0.1_1
ret: 0
```
it also seems that getting an error from pkgmatch is currently impossible
2023-06-01 20:21:57 +02:00
..
2023-06-01 20:21:57 +02:00
2020-03-31 13:04:49 +02:00
2013-11-25 12:34:14 +01:00
2013-06-20 12:33:23 +02:00
2019-05-14 20:49:41 +02:00
2019-06-06 13:11:24 +02:00
2015-08-19 16:05:51 +02:00
2022-01-25 16:15:07 +01:00
2023-02-10 21:33:51 +01:00