diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-04-17 22:23:42 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-04-17 22:23:42 -0700 |
commit | f6faa495baede5b93ba757a21257bb47ce5a703a (patch) | |
tree | e20b265f33f1e25f51b7f36ea26586f469f955ec /.bashrc | |
parent | 6e2d6dbd38db570fc3041584d0508c0450aca65c (diff) | |
download | dotfiles-f6faa495baede5b93ba757a21257bb47ce5a703a.tar.gz |
don't update cabal index so often when testing package plan
This speeds up the tests as 00-index.tar need not be regenerated.
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -72,8 +72,9 @@ alias dinstall="curl https://ftp-master.debian.org/dinstall.status;echo -n 'Righ # use with care, in order for this to actually provide a security advantage alias update-debian-known-hosts="scp master.debian.org:/etc/ssh/ssh_known_hosts ~/src/dotfiles/.ssh/known_hosts_debian" alias grepcopy="grep --color=always -Eir '(copyright|©)' * | less -R" -alias test-package-plan="cabal --no-require-sandbox update \ - && schroot -c haskell -d $HOME -- /bin/sh -c \ +alias test-package-plan="test -z $(find $HOME/.cabal/packages/hackage.haskell.org/01-index.tar -newermt '4 hours ago') \ + && cabal --no-require-sandbox update; \ + schroot -c haskell -d $HOME -- /bin/sh -c \ \"cd src/package-plan && perl test-packages.pl\"" # from dgit-user(7), this pushes a non-native package through sbuild # without an orig.tar for the version in the first changelog entry. |