summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index 51fe585e..e93bff35 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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.