[Pkg-haskell-commits] [package-plan] 82/457: Make all-packages.cabal read-only to prevent accidential edit

Joachim Breitner nomeata at moszumanska.debian.org
Mon Apr 14 20:05:12 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 774cd3bee15c85f55fcd034bf21de8c03c1cd00b
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Tue May 28 09:18:25 2013 +0000

    Make all-packages.cabal read-only to prevent accidential edit
---
 test-packages.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test-packages.pl b/test-packages.pl
index eb4e96b..c8c0075 100644
--- a/test-packages.pl
+++ b/test-packages.pl
@@ -53,8 +53,10 @@ for my $pkg (sort keys %packages) {
 }
 
 print "Creating all-packages.cabal...\n";
+unlink "all-packages.cabal";
 open CABAL, ">", "all-packages.cabal" or die $!;
 print CABAL <<__END__;
+-- This is auto-generated by ./test-packages.pl from packages.txt, make sure to edit that file!
 name: all-packages
 description: Dummy package that depends on all packages in Debian, to check for co-buildability
 version: 0
@@ -72,6 +74,7 @@ for my $pkg (sort keys %versions) {
 	$comma = ", ";
 }
 close CABAL;
+chmod 0444, "all-packages.cabal";
 
 print "Running cabal-install...\n";
 system "cabal install --dry-run --force-reinstall" or die $!;

-- 
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