X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=bin%2Frpmsafe;h=6177dd2bd2c91af8a1cda55cb27f2e6d34044d0b;hp=f8071daa30507ddc08532bded7d148e546b4571d;hb=c36d3924d6aa4ea711f344e215e2f5b8525fd0a0;hpb=8adb38261391cc392ae30dda2dc64a32e3c88cec;ds=sidebyside diff --git a/bin/rpmsafe b/bin/rpmsafe index f8071da..6177dd2 100755 --- a/bin/rpmsafe +++ b/bin/rpmsafe @@ -1,2 +1,2 @@ #! /bin/bash -rpm -Vva 2>/dev/null|perl -ne 'BEGIN{use Cwd qw(realpath);}chomp;print realpath($_)."\n" if s/^[.]{7}[.T][.] [^g] //;' +rpm -Vva 2>/dev/null|perl -ne 'BEGIN{use Cwd qw(realpath);}chomp;s/^[.]{7}[.T][.] [^g] // or next;s{/([^/]*)$}{} or die $_;$f=$1;print(($_ eq ""?"":realpath($_)||$_)."/$f\n");'