diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-30 09:28:35 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-30 09:28:35 +0000 |
commit | 28bc3db3d13b3d8a417bf9a8a930fe20b43d146c (patch) | |
tree | 2ea188ca254b68b8cba41982d9d6b623835d89eb /urpm/sys.pm | |
parent | 017c542333bc298ce92655977fa105a7f417d9d3 (diff) | |
download | urpmi-28bc3db3d13b3d8a417bf9a8a930fe20b43d146c.tar urpmi-28bc3db3d13b3d8a417bf9a8a930fe20b43d146c.tar.gz urpmi-28bc3db3d13b3d8a417bf9a8a930fe20b43d146c.tar.bz2 urpmi-28bc3db3d13b3d8a417bf9a8a930fe20b43d146c.tar.xz urpmi-28bc3db3d13b3d8a417bf9a8a930fe20b43d146c.zip |
Copy all rpms from removable media into the cachedir; don't check for
supermount.
Diffstat (limited to 'urpm/sys.pm')
-rw-r--r-- | urpm/sys.pm | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/urpm/sys.pm b/urpm/sys.pm index 8a5e0739..3b542eec 100644 --- a/urpm/sys.pm +++ b/urpm/sys.pm @@ -2,26 +2,6 @@ package urpm::sys; use strict; -#- check if supermount is used. -sub is_using_supermount { - my ($device_mntpoint) = @_; - local $_; - #- read /etc/fstab and check for existing mount point. - open my $f, "/etc/fstab" or die "Can't read fstab: $!\n"; - while (<$f>) { - next if /^\s*#/; - my ($mntpoint, $fstype, $options) = m!^\s*\S+\s+(/\S+)\s+(\S+)\s+(\S+)! - or next; - $mntpoint =~ s,/+,/,g; $mntpoint =~ s,/$,,; - if ($fstype eq 'supermount') { - return 1 if $device_mntpoint eq $mntpoint; - $options =~ /^(?:.*[\s,])?dev=([^\s,]+)/ && $device_mntpoint eq $1 - and return 1; - } - } - return 0; -} - #- find used mount point from a pathname, use a optional mode to allow #- filtering according the next operation (mount or umount). sub find_mntpoints { |