[Pkg-haskell-commits] [package-plan] 76/457: Script to create a pristine package database

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 c7166de4ff458ee8ffc614fe3691355c8d0da735
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Sun May 26 10:06:37 2013 +0000

    Script to create a pristine package database
    
    Unfortunately, cabal-install doesn't support setting the global database yet.
---
 prisitine-package-database.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/prisitine-package-database.sh b/prisitine-package-database.sh
new file mode 100644
index 0000000..e9cabfc
--- /dev/null
+++ b/prisitine-package-database.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+cd $(dirname $0)
+
+mkdir -p pkgdb
+
+rm -f pkgdb/*
+
+for file in $(dpkg -L ghc|grep package.conf.d)
+do
+	if test -d $file; then continue; fi
+	ln -s $file pkgdb/
+done
+
+ghc-pkg recache --package-db=pkgdb
+

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