+.config/yt-dlp.conf
[nethome.git] / bin / rpmmerge
index c61a6b7..a163307 100755 (executable)
@@ -21,7 +21,9 @@ for base in $l;do
 
        if test ! -f $orig
        then
-               cmp $base $base.rpmnew
+               if [ "$base" = "${base%/java.security}" ];then
+                       cmp $base $base.rpmnew
+               fi
                mv -f $base.rpmnew $base
                continue
        fi
@@ -54,7 +56,7 @@ done
 if $ok
 then
        mkdir -p /root/rpmmerge
-       rpm -qac|perl -ne 'chomp;next if $_ eq "(contains no files)";next if m{^/var/lib/rpm/};next if $_ eq "/usr/lib/locale/locale-archive";next if ! -f $_;$o=$_;$o="/root/rpmmerge/$o";next if -e $o;$od=$o;$od=~s{[^/]*$}{};system "mkdir -p '\''$od'\''" and die "dir $_: $!";system "cp -i -p '\''$_'\'' '\''$o'\''" and die "$_: $!";'
+       rpm -qac|perl -ne 'chomp;next if $_ eq "(contains no files)";next if m{^/var/lib/rpm/};next if $_ eq "/usr/lib/locale/locale-archive";next if $_ eq "/usr/lib/sysimage/rpm/rpmdb.sqlite";next if ! -f $_;$o=$_;$o="/root/rpmmerge/$o";next if -e $o;$od=$o;$od=~s{[^/]*$}{};system "mkdir -p '\''$od'\''" and die "dir $_: $!";system "cp -i -p '\''$_'\'' '\''$o'\''" and die "$_: $!";'
 
        echo OK
 else