summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-04-02 18:03:19 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-04-02 18:03:19 +0100
commit6d497442cd04c73d3341ace96f69fb3c9e81a9a7 (patch)
treea4d3ca97962cdef89a220c783c8a6c2c944b509c
parentInformix Client SDK 3.70 (diff)
downloadportage-6d497442cd04c73d3341ace96f69fb3c9e81a9a7.tar.bz2
portage-6d497442cd04c73d3341ace96f69fb3c9e81a9a7.tar.xz
portage-6d497442cd04c73d3341ace96f69fb3c9e81a9a7.zip
Only eval required settings
Use tmp file when writing updates
-rwxr-xr-xvirtual/miller-base/files/update.portage.cron-22
-rwxr-xr-xvirtual/miller-base/files/weekly-av-scan.cron2
-rwxr-xr-xvirtual/miller-base/files/write-new-updates7
-rw-r--r--virtual/miller-base/miller-base-9-r12.ebuild (renamed from virtual/miller-base/miller-base-9-r11.ebuild)0
4 files changed, 7 insertions, 4 deletions
diff --git a/virtual/miller-base/files/update.portage.cron-2 b/virtual/miller-base/files/update.portage.cron-2
index 59430f4..10e324f 100755
--- a/virtual/miller-base/files/update.portage.cron-2
+++ b/virtual/miller-base/files/update.portage.cron-2
@@ -1,6 +1,6 @@
#!/bin/bash
-eval $(emerge --info -v | grep '^[A-Z_]\+="[^"]*"$')
+eval $(emerge --info -v | grep '^PORTDIR="[^"]*"$')
if df -l ${PORTDIR} 2> /dev/null > /dev/null ; then
emerge --sync --quiet > /dev/null
diff --git a/virtual/miller-base/files/weekly-av-scan.cron b/virtual/miller-base/files/weekly-av-scan.cron
index df442f4..fe644d7 100755
--- a/virtual/miller-base/files/weekly-av-scan.cron
+++ b/virtual/miller-base/files/weekly-av-scan.cron
@@ -1,6 +1,6 @@
#!/bin/bash
-eval $(emerge --info -v | grep '^[A-Z_]\+="[^"]*"$')
+eval $(emerge --info -v | grep '^DISTDIR="[^"]*"$')
nice clamscan -ri --cross-fs=no \
--exclude-dir=${DISTDIR} \
diff --git a/virtual/miller-base/files/write-new-updates b/virtual/miller-base/files/write-new-updates
index a0de4c3..20a5bc2 100755
--- a/virtual/miller-base/files/write-new-updates
+++ b/virtual/miller-base/files/write-new-updates
@@ -1,6 +1,9 @@
#!/bin/bash
-eval $(emerge --info -v | grep '^[A-Z_]\+="[^"]*"$')
+eval $(emerge --info -v | grep '^UPDATESTATEDIR="[^"]*"$')
updates="${UPDATESTATEDIR:-/tmp}/`hostname`_updates.txt"
-emerge -uDNpvq --with-bdeps=y @world @system > ${updates}
+tmp="/tmp/$$.updates"
+emerge -uDNpvq --with-bdeps=y @world @system > ${tmp}
+mv ${tmp} ${updates}
+
diff --git a/virtual/miller-base/miller-base-9-r11.ebuild b/virtual/miller-base/miller-base-9-r12.ebuild
index a35da9d..a35da9d 100644
--- a/virtual/miller-base/miller-base-9-r11.ebuild
+++ b/virtual/miller-base/miller-base-9-r12.ebuild