summaryrefslogtreecommitdiffstats
path: root/files/reprepro/snapshots
diff options
context:
space:
mode:
authorCyril Brulebois <cyril@debamax.com>2016-04-06 09:27:47 +0200
committerCyril Brulebois <cyril@debamax.com>2016-04-06 09:27:47 +0200
commit907cab788c9d34da8a2a3e08892e43009f706f9e (patch)
tree6df3134a49bceb0c4b51e34479da82594e8d8c91 /files/reprepro/snapshots
parenta6c3530284b6472d68f638be7c32412913ff8b78 (diff)
Copy capture variables into better-named ones before using them.
Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Diffstat (limited to 'files/reprepro/snapshots')
-rwxr-xr-xfiles/reprepro/snapshots/tagged/tails-prepare-tagged-apt-snapshot-import3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/reprepro/snapshots/tagged/tails-prepare-tagged-apt-snapshot-import b/files/reprepro/snapshots/tagged/tails-prepare-tagged-apt-snapshot-import
index 57311a2..42e473c 100755
--- a/files/reprepro/snapshots/tagged/tails-prepare-tagged-apt-snapshot-import
+++ b/files/reprepro/snapshots/tagged/tails-prepare-tagged-apt-snapshot-import
@@ -109,7 +109,8 @@ sub get_binaries_and_source_mapping {
my $s_v = "$p = $v";
# Let's now look whether we are in the Hard or Medium cases:
if ($s and $s =~ /^(.*) [(](.*)[)]$/) {
- $s_v = "$1 = $2";
+ my ($source_name, $source_version) = ($1, $2);
+ $s_v = "$source_name = $source_version";
}
elsif ($s) {
$s_v = "$s = $v";