aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-06-13 00:22:44 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-06-13 00:22:44 +0200
commit10028ee46789518f0f5269b3aa107a4318eeeac6 (patch)
tree4e2772671416256e05a1d9853c30ca203454136d
parentc042c519e14cfd15f2fc49fa479d0f5b7bb18183 (diff)
downloadsbotools2-10028ee46789518f0f5269b3aa107a4318eeeac6.tar.xz
sboupgrade: change //= construct to be more verbose
-rwxr-xr-xsboupgrade2
1 files changed, 1 insertions, 1 deletions
diff --git a/sboupgrade b/sboupgrade
index b78465e..6ac6250 100755
--- a/sboupgrade
+++ b/sboupgrade
@@ -124,7 +124,7 @@ my %inst_names;
$inst_names{$_} = 1 for @$inst_names;
my %updates;
if (not $non_int or not $force) {
- $updates //= get_available_updates();
+ $updates = get_available_updates() if not defined $updates;
$updates{$$_{name}} = 1 for @$updates;
}