aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/rpmnew.pm
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2015-03-23 08:24:25 +0100
committerRémi Verschelde <remi@verschelde.fr>2015-03-23 08:24:25 +0100
commit535660fde655bbde76eb84f4d451044b8a2a2dbf (patch)
tree3807180cb4713d493f156870df2a46e1e4bf149d /Rpmdrake/rpmnew.pm
parent9141b3226676c719f1dfede9ad33a4ea1f510714 (diff)
downloadrpmdrake-535660fde655bbde76eb84f4d451044b8a2a2dbf.tar
rpmdrake-535660fde655bbde76eb84f4d451044b8a2a2dbf.tar.gz
rpmdrake-535660fde655bbde76eb84f4d451044b8a2a2dbf.tar.bz2
rpmdrake-535660fde655bbde76eb84f4d451044b8a2a2dbf.tar.xz
rpmdrake-535660fde655bbde76eb84f4d451044b8a2a2dbf.zip
rpmdrake: filter out critical config files from the .rpm{new,save} handling logic after installing packages (Martin Whitaker, mga#14266)
Diffstat (limited to 'Rpmdrake/rpmnew.pm')
-rw-r--r--Rpmdrake/rpmnew.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rpmdrake/rpmnew.pm b/Rpmdrake/rpmnew.pm
index ef213a67..cc88b8eb 100644
--- a/Rpmdrake/rpmnew.pm
+++ b/Rpmdrake/rpmnew.pm
@@ -36,7 +36,7 @@ use mygtk3 qw(gtknew); #- do not import anything else, especially gtkadd() whic
use ugtk3 qw(:all);
use Exporter;
our @ISA = qw(Exporter);
-our @EXPORT = qw(dialog_rpmnew do_merge_if_needed);
+our @EXPORT = qw(ignore_rpmnew dialog_rpmnew do_merge_if_needed);
# /var/lib/nfs/etab /var/lib/nfs/rmtab /var/lib/nfs/xtab /var/cache/man/whatis
my %ignores_rpmnew = map { $_ => 1 } qw(
@@ -71,6 +71,11 @@ my %ignores_rpmnew = map { $_ => 1 } qw(
/etc/sysconfig/xinetd
);
+sub ignore_rpmnew {
+ my ($conf_file) = @_;
+ $ignores_rpmnew{$conf_file};
+}
+
sub inspect {
my ($file) = @_;
my ($rpmnew, $rpmsave) = ("$file.rpmnew", "$file.rpmsave");