diff options
author | Mystery Man <unknown@mandriva.org> | 2002-07-31 23:10:55 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2002-07-31 23:10:55 +0000 |
commit | 6b5bb447b11a31fc0961c20485505a633c9ab4eb (patch) | |
tree | eae73bee290e1e328b539f7649818d7584ee667e /perl-install/network/smbnfs.pm | |
parent | 79d226c48d6de4f26c604ddbd0ce769a58d548c6 (diff) | |
download | drakx-1_1_8_16mdk.tar drakx-1_1_8_16mdk.tar.gz drakx-1_1_8_16mdk.tar.bz2 drakx-1_1_8_16mdk.tar.xz drakx-1_1_8_16mdk.zip |
This commit was manufactured by cvs2svn to create tag 'V1_1_8_16mdk'.V1_1_8_16mdk
Diffstat (limited to 'perl-install/network/smbnfs.pm')
-rw-r--r-- | perl-install/network/smbnfs.pm | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/perl-install/network/smbnfs.pm b/perl-install/network/smbnfs.pm deleted file mode 100644 index 6b55f6fd0..000000000 --- a/perl-install/network/smbnfs.pm +++ /dev/null @@ -1,58 +0,0 @@ -package network::smbnfs; # $Id$ - -use strict; -use diagnostics; - -use fs; - - -sub new { - my ($class, $v) = @_; - bless($v || {}, $class); -} - -sub server_to_string { - my ($class, $server) = @_; - $server->{name} || $server->{ip}; -} -sub comment_to_string { - my ($class, $comment) = @_; - $comment; -} -sub to_dev { - my ($class, $e) = @_; - $class->to_dev_raw($class->server_to_string($e->{server}), $e->{name} || $e->{ip}); -} -sub to_string { - my ($class, $e) = @_; - my $comment = $class->comment_to_string($e->{comment}); - ($e->{name} || $e->{ip}) . ($comment ? " ($comment)" : ''); -} - -sub to_fullstring { - my ($class, $e) = @_; - my $comment = $class->comment_to_string($e->{comment}); - $class->to_dev($e) . ($comment ? " ($comment)" : ''); -} -sub to_fstab_entry_raw { - my ($class, $e, $type) = @_; - my $fs_entry = { device => $class->to_dev($e), type => $type }; - fs::set_default_options($fs_entry); - $fs_entry; -} - -sub raw_check { - my ($class, $in, $pkg, $file) = @_; - if (! -e $file) { - $in->ask_okcancel('', _("The package %s needs to be installed. Do you want to install it?", $pkg), 1) or return; - $in->do_pkgs->install($pkg); - } - if (! -e $file) { - $in->ask_warn('', _("Mandatory package %s is missing", $pkg)); - return; - } - 1; -} - -1; - |