diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-02-27 14:22:15 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-02-27 14:22:15 +0000 |
commit | 444eed89d799da4686b90b70e81deafe10b40ae5 (patch) | |
tree | 99f0f505da3bba19bcb7dd3acf35c86d36d74b6f /urpm/sys.pm | |
parent | 19456f175d4681a0646af79d75e04fe9e64e3648 (diff) | |
download | urpmi-444eed89d799da4686b90b70e81deafe10b40ae5.tar urpmi-444eed89d799da4686b90b70e81deafe10b40ae5.tar.gz urpmi-444eed89d799da4686b90b70e81deafe10b40ae5.tar.bz2 urpmi-444eed89d799da4686b90b70e81deafe10b40ae5.tar.xz urpmi-444eed89d799da4686b90b70e81deafe10b40ae5.zip |
create read_mtab()
Diffstat (limited to 'urpm/sys.pm')
-rw-r--r-- | urpm/sys.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/urpm/sys.pm b/urpm/sys.pm index d4484458..f40cc401 100644 --- a/urpm/sys.pm +++ b/urpm/sys.pm @@ -54,6 +54,8 @@ sub find_mntpoints { } } +sub read_mtab() { _read_fstab_or_mtab('/etc/mtab') } + #- find used mount point from a pathname sub _find_a_mntpoint { my ($dir, $infos) = @_; @@ -62,7 +64,7 @@ sub _find_a_mntpoint { foreach (_read_fstab_or_mtab("/etc/fstab")) { $infos->{$_->{mntpoint}} = { mounted => 0, %$_ }; } - foreach (_read_fstab_or_mtab("/etc/mtab")) { + foreach (read_mtab()) { $infos->{$_->{mntpoint}} = { mounted => 1, %$_ }; } |