summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-03 13:32:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-03 13:32:05 +0000
commit5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3 (patch)
tree3d6e81022aae46e1568d9c11f4e07f7c986088a3 /urpm/media.pm
parent94cfc57850981b85f9fc027621a3439e9d36eb9b (diff)
downloadurpmi-5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3.tar
urpmi-5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3.tar.gz
urpmi-5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3.tar.bz2
urpmi-5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3.tar.xz
urpmi-5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3.zip
simplify (as suggested by perl_checker)
Diffstat (limited to 'urpm/media.pm')
-rw-r--r--urpm/media.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index ca7e8c4b..3dd9747b 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -310,9 +310,8 @@ sub _valid_synthesis_dir {
sub _url_with_synthesis_rel {
my ($medium) = @_;
- $medium->{with_synthesis}
- ? $medium->{with_synthesis}
- : "$medium->{media_info_dir}/synthesis.hdlist.cz";
+ $medium->{with_synthesis} ||
+ "$medium->{media_info_dir}/synthesis.hdlist.cz";
}
sub _url_with_synthesis {