[Git][haskell-team/package-plan][master] use CABAL_DIR if defined

Félix Sipma gitlab at salsa.debian.org
Mon Feb 1 15:08:37 GMT 2021



Félix Sipma pushed to branch master at Debian Haskell Group / package-plan


Commits:
7a5b7d53 by Félix Sipma at 2021-02-01T16:08:09+01:00
use CABAL_DIR if defined

- - - - -


1 changed file:

- test-packages.pl


Changes:

=====================================
test-packages.pl
=====================================
@@ -236,7 +236,8 @@ for my $pkg (sort keys %packages) {
 }
 
 my $sandboxdir = cwd() . "/cabal-sandbox";
-my $originaltarpath = $ENV{HOME}."/.cabal/packages/hackage.haskell.org/01-index.tar";
+my $cabaldir = defined $ENV{CABAL_DIR} ? $ENV{CABAL_DIR} : $ENV{HOME}."/.cabal";
+my $originaltarpath = "$cabaldir/packages/hackage.haskell.org/01-index.tar";
 my $tarpath = "$sandboxdir/packages/debian/00-index.tar";
 my $dbpath = "$sandboxdir/db";
 my $createsandbox = 0;



View it on GitLab: https://salsa.debian.org/haskell-team/package-plan/-/commit/7a5b7d53b021d0030d81c02540c67a0710538050

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/package-plan/-/commit/7a5b7d53b021d0030d81c02540c67a0710538050
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20210201/387f64ec/attachment.html>


More information about the Pkg-haskell-commits mailing list