summaryrefslogtreecommitdiff
path: root/scripts/dpkg-shlibdeps.pl
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-04-02 03:57:17 +0200
committerGuillem Jover <guillem@debian.org>2014-04-21 07:07:55 +0200
commitf18b4447aed248f2154e68eb4810c20a2021d6ee (patch)
tree55495c89ac9652591e3fe22705adb48f262167d7 /scripts/dpkg-shlibdeps.pl
parent82e5f76256237dc9407c8f532befe94307d6d724 (diff)
downloaddpkg-f18b4447aed248f2154e68eb4810c20a2021d6ee.tar.gz
scripts: Use // operator instead of defined and ternary operator
Diffstat (limited to 'scripts/dpkg-shlibdeps.pl')
-rwxr-xr-xscripts/dpkg-shlibdeps.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl
index 8443680c6..b7b2e8237 100755
--- a/scripts/dpkg-shlibdeps.pl
+++ b/scripts/dpkg-shlibdeps.pl
@@ -701,7 +701,7 @@ sub extract_from_shlibs {
$shlibfile, $., $_);
next;
}
- my $depread = defined($4) ? $4 : '';
+ my $depread = $4 // '';
if (($libname eq $2) && ($libversion eq $3)) {
# Define dep and end here if the package type explicitly
# matches. Otherwise if the packagetype is not specified, use