2
0
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:
David J Drewelow
2007-02-03 00:56:12 +00:00
parent 20dbc4d8cb
commit 279b200bb8

View File

@@ -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;
} }
} }