[Pkg-haskell-commits] r924 - /packages/haskell-devscripts/trunk/dh_haskell_install
arjan at users.alioth.debian.org
arjan at users.alioth.debian.org
Thu Jan 10 23:35:17 UTC 2008
Author: arjan
Date: Thu Jan 10 23:35:17 2008
New Revision: 924
URL: http://svn.debian.org/wsvn/pkg-haskell/?sc=1&rev=924
Log:
r2373 at nebula: arjan | 2008-01-11 00:32:21 +0100
* Declare variable inconfig outside the if-then-else construct,
so it scopes properly.
Modified:
packages/haskell-devscripts/trunk/dh_haskell_install
Modified: packages/haskell-devscripts/trunk/dh_haskell_install
URL: http://svn.debian.org/wsvn/pkg-haskell/packages/haskell-devscripts/trunk/dh_haskell_install?rev=924&op=diff
==============================================================================
--- packages/haskell-devscripts/trunk/dh_haskell_install (original)
+++ packages/haskell-devscripts/trunk/dh_haskell_install Thu Jan 10 23:35:17 2008
@@ -81,11 +81,13 @@
# Remove empty directories from package
finddepth({wanted => \&remove_emptydir}, "$tmp/usr/lib");
+ my $inconfig;
if ( -e "dist/installed-pkg-config" ) {
- my $inconfig = "dist/installed-pkg-config" ;
+ $inconfig = "dist/installed-pkg-config" ;
} else {
- my $inconfig = ".installed-pkg-config" ;
+ $inconfig = ".installed-pkg-config" ;
}
+
open INCONFIG , "<", $inconfig or
die "Cannot read $inconfig: $!";
open OUTCONFIG, ">", "$tmp" .
More information about the Pkg-haskell-commits
mailing list