summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2001-08-01 21:21:45 +0000
committerDaniel Robbins <drobbins@gentoo.org>2001-08-01 21:21:45 +0000
commit94cbc0213a30304cdcff8f1b5fe1e666cb66eefb (patch)
treee3717d113cd229f2fb044fa0d12e2d59049090e4
parentdigests for stuff in incoming (diff)
downloadgentoo-2-94cbc0213a30304cdcff8f1b5fe1e666cb66eefb.tar.gz
gentoo-2-94cbc0213a30304cdcff8f1b5fe1e666cb66eefb.tar.bz2
gentoo-2-94cbc0213a30304cdcff8f1b5fe1e666cb66eefb.zip
updates for the mirroring stuff
-rwxr-xr-xsys-apps/portage/files/1.5/bin/import-configsettings13
-rwxr-xr-xsys-apps/portage/files/1.5/bin/import-settings12
-rwxr-xr-xsys-apps/portage/files/1.5/bin/megatouch10
3 files changed, 5 insertions, 30 deletions
diff --git a/sys-apps/portage/files/1.5/bin/import-configsettings b/sys-apps/portage/files/1.5/bin/import-configsettings
deleted file mode 100755
index 26ccedeeaf75..000000000000
--- a/sys-apps/portage/files/1.5/bin/import-configsettings
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/spython
-import sys,portage
-for x in sys.argv[1:]:
- #the 0 disables the environment check
- mysetting=portage.getsetting(x,portage.root,0)
- if x=="ROOT":
- #make sure path ends with a "/"
- if len(mysetting)==0:
- mysetting="/"
- elif mysetting[-1]!="/":
- mysetting=mysetting+"/"
- print "export "+x+"='"+mysetting+"'"
-
diff --git a/sys-apps/portage/files/1.5/bin/import-settings b/sys-apps/portage/files/1.5/bin/import-settings
deleted file mode 100755
index cb902d10580f..000000000000
--- a/sys-apps/portage/files/1.5/bin/import-settings
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/spython
-import sys,portage
-for x in sys.argv[1:]:
- mysetting=portage.getsetting(x,portage.root)
- if x=="ROOT":
- #make sure path ends with a "/"
- if len(mysetting)==0:
- mysetting="/"
- elif mysetting[-1]!="/":
- mysetting=mysetting+"/"
- print "export "+x+"='"+mysetting+"'"
-
diff --git a/sys-apps/portage/files/1.5/bin/megatouch b/sys-apps/portage/files/1.5/bin/megatouch
index c1f8baae7c0d..33b75a4ddb92 100755
--- a/sys-apps/portage/files/1.5/bin/megatouch
+++ b/sys-apps/portage/files/1.5/bin/megatouch
@@ -1,10 +1,12 @@
#!/usr/bin/env bash
+DISTDIR=/usr/portage/distfiles
+PORTDIR=/usr/portage
export PATH="/usr/lib/portage/bin:${PATH}"
-eval `import-settings DISTDIR PORTDIR`
echo -n "Source archive pruning started "
date
-touch ${DISTDIR}/.cleaned
-sleep 1
+#will only prune files not touched for 60 days
+touch ${DISTDIR}/.cleaned -d "60 days ago"
+sleep 2
cd ${PORTDIR}
for x in `find ${PORTDIR}/ -iname '*.ebuild'`
do
@@ -20,7 +22,5 @@ for x in `find ! -newer .cleaned | grep ./`
do
mv $x ${DISTDIR}-old
done
-du -k ${DISTDIR}
-du -k ${DISTDIR}-old
echo -n "Source archive pruning completed "
date