diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-03 13:32:05 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-03 13:32:05 +0000 |
commit | 5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3 (patch) | |
tree | 3d6e81022aae46e1568d9c11f4e07f7c986088a3 | |
parent | 94cfc57850981b85f9fc027621a3439e9d36eb9b (diff) | |
download | urpmi-5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3.tar urpmi-5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3.tar.gz urpmi-5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3.tar.bz2 urpmi-5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3.tar.xz urpmi-5dfa3e3fdc43acb93c13ae2ce3e22b646746dfd3.zip |
simplify (as suggested by perl_checker)
-rw-r--r-- | urpm/media.pm | 5 |
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 { |