Mageia Bugzilla – Attachment 6121 Details for
Bug 14266
If you accept .rpmnew from the setup package, all your login data is lost and you cannot log in anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Patch to filter out critical config files after packages are installed
drakrpm-filter-rpmnew.patch (text/plain), 1.38 KB, created by
Martin Whitaker
on 2015-03-22 23:05:57 CET
(
hide
)
Description:
Patch to filter out critical config files after packages are installed
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2015-03-22 23:05:57 CET
Size:
1.38 KB
patch
obsolete
>--- Rpmdrake/pkg.pm.orig 2015-03-22 18:19:08.556138616 +0000 >+++ Rpmdrake/pkg.pm 2015-03-22 18:51:16.818547389 +0000 >@@ -855,7 +855,7 @@ > foreach my $id (@rpms_upgrade) { > my $pkg = $urpm->{depslist}[$id]; > next if $pkg->arch eq 'src'; >- $pkg2rpmnew{$pkg->fullname} = [ grep { -r "$_.rpmnew" || -r "$_.rpmsave" } $pkg->conf_files ]; >+ $pkg2rpmnew{$pkg->fullname} = [ grep { (-r "$_.rpmnew" || -r "$_.rpmsave") && !ignore_rpmnew($_) } $pkg->conf_files ]; > } > statusbar_msg_remove($id); > dialog_rpmnew(N("The installation is finished; everything was installed correctly. >--- Rpmdrake/rpmnew.pm.orig 2015-03-22 18:48:46.363295115 +0000 >+++ Rpmdrake/rpmnew.pm 2015-03-22 18:52:13.066267833 +0000 >@@ -36,7 +36,7 @@ > 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 @@ > /etc/sysconfig/xinetd > ); > >+sub ignore_rpmnew { >+ my ($conf_file) = @_; >+ $ignores_rpmnew{$conf_file}; >+} >+ > sub inspect { > my ($file) = @_; > my ($rpmnew, $rpmsave) = ("$file.rpmnew", "$file.rpmsave");
--- Rpmdrake/pkg.pm.orig 2015-03-22 18:19:08.556138616 +0000 +++ Rpmdrake/pkg.pm 2015-03-22 18:51:16.818547389 +0000 @@ -855,7 +855,7 @@ foreach my $id (@rpms_upgrade) { my $pkg = $urpm->{depslist}[$id]; next if $pkg->arch eq 'src'; - $pkg2rpmnew{$pkg->fullname} = [ grep { -r "$_.rpmnew" || -r "$_.rpmsave" } $pkg->conf_files ]; + $pkg2rpmnew{$pkg->fullname} = [ grep { (-r "$_.rpmnew" || -r "$_.rpmsave") && !ignore_rpmnew($_) } $pkg->conf_files ]; } statusbar_msg_remove($id); dialog_rpmnew(N("The installation is finished; everything was installed correctly. --- Rpmdrake/rpmnew.pm.orig 2015-03-22 18:48:46.363295115 +0000 +++ Rpmdrake/rpmnew.pm 2015-03-22 18:52:13.066267833 +0000 @@ -36,7 +36,7 @@ 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 @@ /etc/sysconfig/xinetd ); +sub ignore_rpmnew { + my ($conf_file) = @_; + $ignores_rpmnew{$conf_file}; +} + sub inspect { my ($file) = @_; my ($rpmnew, $rpmsave) = ("$file.rpmnew", "$file.rpmsave");
View Attachment As Raw
Actions:
View
Attachments on
bug 14266
:
6120
| 6121 |
6125
|
6128