summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-17 11:34:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-17 11:34:32 +0000
commit4781e491c32fdfe0dbe3cf97a8aca90040a9406b (patch)
treeca4f166763cc8be7bc01e943dcbf5a058758060d /perl-install/devices.pm
parent5458ef92ec80fab427e4d69b5cdd22bb76b261d8 (diff)
downloaddrakx-4781e491c32fdfe0dbe3cf97a8aca90040a9406b.tar
drakx-4781e491c32fdfe0dbe3cf97a8aca90040a9406b.tar.gz
drakx-4781e491c32fdfe0dbe3cf97a8aca90040a9406b.tar.bz2
drakx-4781e491c32fdfe0dbe3cf97a8aca90040a9406b.tar.xz
drakx-4781e491c32fdfe0dbe3cf97a8aca90040a9406b.zip
new perl_checker compliance
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r--perl-install/devices.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index a6916bfdc..7c57f43a0 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -47,14 +47,14 @@ sub find_free_loop {
die "no free loop found";
}
sub set_loop {
- my ($file, $encrypt_key, $encryption) = @_;
+ my ($file, $o_encrypt_key, $o_encryption) = @_;
my $dev = find_free_loop();
- if ($encrypt_key && $encryption) {
- my $cmd = "losetup -p 0 -e $encryption $dev $file";
+ if ($o_encrypt_key && $o_encryption) {
+ my $cmd = "losetup -p 0 -e $o_encryption $dev $file";
log::l("calling $cmd");
open(my $F, "|$cmd");
- print $F $encrypt_key;
+ print $F $o_encrypt_key;
close $F or die "losetup failed";
} else {
run_program::run("losetup", $dev, $file) or return;