]> git.donarmstrong.com Git - cran2deb.git/commitdiff
make update use mini-dinstall config from system-depenent config (oops!)
authorblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 13 Sep 2008 16:34:14 +0000 (16:34 +0000)
committerblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 13 Sep 2008 16:34:14 +0000 (16:34 +0000)
git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@156 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

branch/multisys/exec/update
branch/multisys/exec/update_cache

index 80565ba1a944dcdb7692063a247160069c54d6e6..bca99139b3819f4dc5f4c3fad40935ccbe4991c7 100755 (executable)
@@ -8,8 +8,9 @@
 umask 002
 root=$1
 shift
-mkdir -p /var/cache/cran2deb/results || exit 1
-mini-dinstall --batch -c /etc/cran2deb/mini-dinstall.conf || exit 1
+sys=`{cran2deb which_sys}
+mkdir -p /var/cache/cran2deb/results/$sys || exit 1
+mini-dinstall --batch -c /etc/cran2deb/sys/$sys/mini-dinstall.conf || exit 1
 update_period=10800
 if (~ $1 full || ![ -e /var/cache/cran2deb/cache.rda ] ) {
     delta=`{awk 'END{print '^$update_period^'+1}' </dev/null}
@@ -20,7 +21,6 @@ if (~ $1 full || ![ -e /var/cache/cran2deb/cache.rda ] ) {
 }
 if (![ -e /var/cache/cran2deb/cache.rda ] || [ $delta -gt $update_period ]) {
     mode=create
-    sys=`{cran2deb which_sys}
     if ([ -e /var/cache/pbuilder/base-cran2deb-$sys.tgz ]) {
         mode=update
     }
index 689384670f01d01b9ce20ae4e1909bc1ca0194c2..0f3632da860df004fe70611abf9f1de3bd596869 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env Rscript
+# Note: everything in the case needs to be system-independent!
 library(cran2deb)
 library(ctv)