mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
Changed deprecated call from Immunix::Ycp to ycp::
This commit is contained in:
@@ -24,7 +24,7 @@ use POSIX;
|
|||||||
use Locale::gettext;
|
use Locale::gettext;
|
||||||
|
|
||||||
setlocale(LC_MESSAGES, "");
|
setlocale(LC_MESSAGES, "");
|
||||||
textdomain("yast2-apparmor");
|
textdomain("apparmor-utils");
|
||||||
|
|
||||||
use constant NTCONF => '/etc/apparmor/notify.cfg';
|
use constant NTCONF => '/etc/apparmor/notify.cfg';
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ sub updateFiles {
|
|||||||
if ( unlink("$oldFile") ) {
|
if ( unlink("$oldFile") ) {
|
||||||
if ( ! rename ("$newFile", "$oldFile") ) {
|
if ( ! rename ("$newFile", "$oldFile") ) {
|
||||||
if ( ! system('/bin/mv', "$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;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user