[Pkg-haskell-commits] [package-plan] 129/457: Allow specifying flags in packages.txt
Joachim Breitner
nomeata at moszumanska.debian.org
Mon Apr 14 20:05:18 UTC 2014
This is an automated email from the git hooks/post-receive script.
nomeata pushed a commit to branch master
in repository package-plan.
commit 2b2e0bab082a65848ccc2403d3c97b1f9cbbdc01
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Sat Jun 15 11:54:34 2013 +0000
Allow specifying flags in packages.txt
---
test-packages.pl | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test-packages.pl b/test-packages.pl
index 027b2b7..adf4d23 100644
--- a/test-packages.pl
+++ b/test-packages.pl
@@ -16,6 +16,7 @@ my %versions;
my %available;
my %comments;
my %notest;
+my @flags;
print "Reading packages.txt...\n";
open PACKAGES, "<", "packages.txt" or die $!;
@@ -31,6 +32,7 @@ while (<PACKAGES>) {
$versions{$pkg} = $version;
next unless $comment;
$notest{$pkg}++ if $comment =~ s/notest\s*//;
+ push @flags, $1 while $comment =~ s/(-f[^ ]+)\s*//;
$comments{$pkg} = $comment if $comment;
}
close PACKAGES;
@@ -171,6 +173,9 @@ for my $pkg (sort keys %versions) {
next if (exists $notest{$pkg});
push @params, sprintf "%s-%s", $pkg, $versions{$pkg};
}
+push @params, @flags;
+
+printf "Using flags: %s\n", join ", ", @flags;
print "Running cabal-install...\n";
my $out;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/package-plan.git
More information about the Pkg-haskell-commits
mailing list