summaryrefslogtreecommitdiffstats
path: root/urpm/util.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-05-04 17:38:10 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-05-06 10:16:18 +0200
commitad3ae8cc582438000b3b8589b3629df98da49c9d (patch)
tree0ba123128c5200db71579271d7c848e320d20742 /urpm/util.pm
parentc8187549845afb9201686e3117c0d16cb7a41f26 (diff)
downloadurpmi-ad3ae8cc582438000b3b8589b3629df98da49c9d.tar
urpmi-ad3ae8cc582438000b3b8589b3629df98da49c9d.tar.gz
urpmi-ad3ae8cc582438000b3b8589b3629df98da49c9d.tar.bz2
urpmi-ad3ae8cc582438000b3b8589b3629df98da49c9d.tar.xz
urpmi-ad3ae8cc582438000b3b8589b3629df98da49c9d.zip
Stop truncating disk names when prompting for a CD
.. or for a CD/USB key See mga#26564 comment 9: https://bugs.mageia.org/show_bug.cgi?id=26564#c9
Diffstat (limited to 'urpm/util.pm')
-rw-r--r--urpm/util.pm2
1 files changed, 0 insertions, 2 deletions
diff --git a/urpm/util.pm b/urpm/util.pm
index 7079e6ed..60a449d8 100644
--- a/urpm/util.pm
+++ b/urpm/util.pm
@@ -28,7 +28,6 @@ our @EXPORT = qw(add2hash_
put_in_hash
quotespace
reduce_pathname
- remove_internal_name
same_size_and_mtime
uefi_type
uniq
@@ -44,7 +43,6 @@ sub max { my $n = shift; $_ > $n and $n = $_ foreach @_; $n }
#- quoting/unquoting a string that may be containing space chars.
sub quotespace { my $x = $_[0] || ''; $x =~ s/(\s)/\\$1/g; $x }
sub unquotespace { my $x = $_[0] || ''; $x =~ s/\\(\s)/$1/g; $x }
-sub remove_internal_name { my $x = $_[0] || ''; $x =~ s/\(\S+\)$/$1/g; $x }
sub dirname { local $_ = shift; s|[^/]*/*\s*$||; s|(.)/*$|$1|; $_ || '.' }
sub basename { local $_ = shift; s|/*\s*$||; s|.*/||; $_ }