2
0
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:
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;
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;
}
}