mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 05:47:59 +00:00
Changed deprecated call from Immunix::Ycp to ycp::
This commit is contained in:
parent
20dbc4d8cb
commit
279b200bb8
@ -24,7 +24,7 @@ use POSIX;
|
||||
use Locale::gettext;
|
||||
|
||||
setlocale(LC_MESSAGES, "");
|
||||
textdomain("yast2-apparmor");
|
||||
textdomain("apparmor-utils");
|
||||
|
||||
use constant NTCONF => '/etc/apparmor/notify.cfg';
|
||||
|
||||
@ -48,7 +48,7 @@ sub updateFiles {
|
||||
if ( unlink("$oldFile") ) {
|
||||
if ( ! rename ("$newFile", "$oldFile") ) {
|
||||
if ( ! system('/bin/mv', "$newFile","$oldFile") ) {
|
||||
Immunix::Ycp::y2error(sprintf(gettext("Failed copying %s."), $oldFile));
|
||||
ycp::y2error(sprintf(gettext("Failed copying %s."), $oldFile));
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user