As this did not detect the version from Arch Linux, which is, for
example:
> required from libsystemd-shared-251.7-4.so:
Accept dot and minus as separator for the extra/patch/distro level of
the version and allow arbitrary many such tuple parts.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
['objdump', '-p', $self->{rootdir}.$init],
outfunc => sub {
my $line = shift;
- if ($line =~ /libsystemd-shared-(\d+)(?:\.[a-zA-Z0-9]*)?\.so:$/) {
+ if ($line =~ /libsystemd-shared-(\d+)(?:[-.][a-zA-Z0-9]+)*\.so:?$/) {
$version = $1;
}
},