[Collab-qa-commits] r1407 - udd/scripts

tille at alioth.debian.org tille at alioth.debian.org
Mon Mar 16 09:19:26 UTC 2009


Author: tille
Date: 2009-03-16 09:19:26 +0000 (Mon, 16 Mar 2009)
New Revision: 1407

Modified:
   udd/scripts/fetch_ddtp_translations.sh
   udd/scripts/fetch_ftpnew.sh
Log:
DDTP has currentl yonly unzipped files with Version numbers, this will change in the very newar future but
for the moment we need to zip them on our own


Modified: udd/scripts/fetch_ddtp_translations.sh
===================================================================
--- udd/scripts/fetch_ddtp_translations.sh	2009-03-16 06:35:13 UTC (rev 1406)
+++ udd/scripts/fetch_ddtp_translations.sh	2009-03-16 09:19:26 UTC (rev 1407)
@@ -1,5 +1,4 @@
 #!/bin/sh
-set -x
 TARGETPATH=`grep "^\s*path:" /org/udd.debian.net/udd/config_ddtp.yaml | sed 's/^\s*path:\s*//'`
 RELEASES=`grep "^\s*releases:" /org/udd.debian.net/udd/config_ddtp.yaml | sed 's/^\s*releases:\s*//'`
 MIRROR=`grep "^\s*mirror:" /org/udd.debian.net/udd/config_ddtp.yaml | sed 's/^\s*mirror:\s*//'`
@@ -8,8 +7,10 @@
 # rm -rf "$TARGETPATH"
 for rel in $RELEASES; do
     TARGETDIR="$TARGETPATH"/${rel}
+    rm -rf "$TARGETDIR"
     [ -d $TARGETDIR ] || mkdir -p $TARGETDIR
-    `dirname $0`/getlinks.pl "$HTTPMIRROR"/dists/${rel}/main/i18n/ "$TARGETPATH"/${rel} 'Translation-.*' #\.gz$'
+    `dirname $0`/getlinks.pl "$HTTPMIRROR"/dists/${rel}/main/i18n/ "$TARGETPATH"/${rel} 'Translation-.*' # \.gz$'
+    gzip "$TARGETPATH"/${rel}/Translation-*
     # rsync -a --no-motd --include "Translation-*.gz" --exclude "*" "$RSYNCMIRROR"/dists/${rel}/main/i18n/ $TARGETDIR
 done
 

Modified: udd/scripts/fetch_ftpnew.sh
===================================================================
--- udd/scripts/fetch_ftpnew.sh	2009-03-16 06:35:13 UTC (rev 1406)
+++ udd/scripts/fetch_ftpnew.sh	2009-03-16 09:19:26 UTC (rev 1407)
@@ -5,4 +5,8 @@
 wget -q http://ftp-master.debian.org/new.822 -O ${TARGETDIR}/new.822
 cd $TARGETDIR
 wget -q -r -N --level=2 --no-parent --no-directories http://ftp-master.debian.org/new/
+# Some large packages do contain e huge list of files which just consumes space in our
+# cache - so simply delete these entries which are of no use here
+#  sed -i '/^[-dlrwx]\+ root\/root/d' ${TARGETDIR}/*.html
+# Finally it might be better to keep originals ...
 rm -f $TARGETDIR/index.html*




More information about the Collab-qa-commits mailing list