[debhelper-devel] [debhelper] 01/01: dh_install: Move loop invariant out of loop
Niels Thykier
nthykier at moszumanska.debian.org
Tue Jun 27 10:16:39 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit 6267aeeca2b222238394a4bddb5f5855f642b0a3
Author: Niels Thykier <niels at thykier.net>
Date: Tue Jun 27 10:16:01 2017 +0000
dh_install: Move loop invariant out of loop
Signed-off-by: Niels Thykier <niels at thykier.net>
---
dh_install | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dh_install b/dh_install
index 62ed9c8..0913c98 100755
--- a/dh_install
+++ b/dh_install
@@ -146,6 +146,12 @@ if ($dh{LIST_MISSING} || $dh{FAIL_MISSING}) {
deprecated_functionality('Please use dh_missing --list-missing/--fail-missing instead', 11);
}
+# Support for -X flag.
+my $exclude = '';
+if ($dh{EXCLUDE_FIND}) {
+ $exclude = '! \( '.$dh{EXCLUDE_FIND}.' \)';
+}
+
# PROMISE: DH NOOP WITHOUT install
foreach my $package (getpackages()) {
@@ -168,12 +174,6 @@ foreach my $package (getpackages()) {
push @install, [@ARGV];
}
- # Support for -X flag.
- my $exclude = '';
- if ($dh{EXCLUDE_FIND}) {
- $exclude = '! \( '.$dh{EXCLUDE_FIND}.' \)';
- }
-
# With autodest, we can just pretend every pattern was on its own line
@install = map { [$_] } map { @$_ } @install if $dh{AUTODEST};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list