projects
/
nixdeb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
709ac25
)
Use of dpkg-deb to extract packages.
author
Andrea Zagli
<azagli@libero.it>
Sun, 11 Sep 2022 16:57:32 +0000
(18:57 +0200)
committer
Andrea Zagli
<azagli@libero.it>
Sun, 11 Sep 2022 16:57:32 +0000
(18:57 +0200)
nixdeb.sh
patch
|
blob
|
history
diff --git
a/nixdeb.sh
b/nixdeb.sh
index bbc3a631cce27f94eadf97a6f0986df9b796609f..7e7b0df6164f317393ccfd702d27c5e041458a72 100755
(executable)
--- a/
nixdeb.sh
+++ b/
nixdeb.sh
@@
-2,11
+2,9
@@
set -x
-ADMIN_DIR=./nixdeb/admindir
INSTALL_DIR=./nixdeb/store
ROOT_DIR=./nixdeb/root
-mkdir -p $ADMIN_DIR
mkdir -p $ROOT_DIR
for p in $(apt-rdepends $1 2> /dev/null | grep -v "^ ")
@@
-23,7
+21,7
@@
INSTALL_DIR_PKG=$INSTALL_DIR/$filename
mkdir -p $INSTALL_DIR_PKG
apt-get download $p
-dpkg
--unpack --force-all --admindir=$ADMIN_DIR --instdir=$INSTALL_DIR_PKG $filename
+dpkg
-deb -x $filename $INSTALL_DIR_PKG
links () {
dir=$1