X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=2bbad17a1f6b31db2d463cc9d902e1933a965ae6;hb=c080147bdebaac115e77ea7ab979ad5d22e7eaba;hp=6fc9f45eefede403786e985fd73a6cb155c4e5ae;hpb=29f0d1a897e05749f8ce3e0fe458af50590da65d;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions old mode 100644 new mode 100755 index 6fc9f45e..2bbad17a --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -105,7 +105,7 @@ function i18n1() { # Now check if we still know about the packages for which they created the files # is the timestamp signed by us? - if $(gpgv --keyring /srv/ftp-master.debian.org/s3kr1t/dot-gnupg/pubring.gpg timestamp.gpg timestamp); then + if gpgv --keyring /srv/ftp-master.debian.org/s3kr1t/dot-gnupg/pubring.gpg timestamp.gpg timestamp; then # now read it. As its signed by us we are sure the content is what we expect, no need # to do more here. And we only test -d a directory on it anyway. TSTAMP=$(cat timestamp) @@ -152,7 +152,7 @@ function dep11() { for comp in main contrib non-free; do mkdir -p ${ftpdir}/dists/${dir}/${comp}/dep11 cd ${dir}/${comp} - rsync -aq --delete --delete-after --exclude *.tmp . ${ftpdir}/dists/${dir}/${comp}/dep11/. + rsync -aq --delete --delete-after --exclude "./*.tmp" . ${ftpdir}/dists/${dir}/${comp}/dep11/. cd ${dep11dir} done fi @@ -479,10 +479,12 @@ function mirror() { fi RFC822DATE=$(LC_ALL=POSIX LANG=POSIX date -u -R) date -u > ${TRACEFILE} - echo "Using dak v1" >> ${TRACEFILE} - echo "Running on host: $(hostname -f)" >> ${TRACEFILE} - echo "Archive serial: ${SERIAL}" >> ${TRACEFILE} - echo "Date: ${RFC822DATE}" >> ${TRACEFILE} + { + echo "Using dak v1" + echo "Running on host: $(hostname -f)" + echo "Archive serial: ${SERIAL}" + echo "Date: ${RFC822DATE}" + } >> ${TRACEFILE} # Now make it accessible via one name, no matter on which host we run cd ${archiveroot}/project/trace/ ln -sf ftp-master.debian.org master @@ -533,7 +535,7 @@ function mirrorpush() { while read SHASUM SIZE NAME; do if ! [[ -f ${subdir}/${NAME} ]]; then bname=$(basename ${NAME}) - if [[ "${bname}" =~ ^(Packages|Sources|Contents-[a-zA-Z0-9-]+|Translation-[a-zA-Z_]+|Components-(amd64|i386)\.yml|icons-(128x128|64x64)\.tar)$ ]]; then + if [[ "${bname}" =~ ^(Packages|Sources|Contents-[a-zA-Z0-9-]+|Translation-[a-zA-Z_]+|Components-[a-zA-Z0-9-]+\.yml|icons-(128x128|64x64)\.tar)$ ]]; then # We don't keep unpacked files, don't check for their existance. # We might want to go and check their unpacked shasum, but right now @@ -604,6 +606,11 @@ function mirrorpush-backports() { sudo -u backports /home/backports/bin/update-archive } +function mirrorpush-release() { + log "Pushing cdbuilder host" + sudo -H -u archvsync /home/archvsync/runmirrors release > ~dak/runmirrors-release.log 2>&1 & +} + function i18n2() { log "Exporting package data foo for i18n project" STAMP=$(date "+%Y%m%d%H%M") @@ -651,7 +658,7 @@ function savetimestamp() { } function maillogfile() { - cat "$LOGFILE" | mail -a "X-Debian: DAK" -s "Log for dinstall run of ${NOW}" -a "From: Debian FTP Masters " cron@ftp-master.debian.org + mail -a "X-Debian: DAK" -s "Log for dinstall run of ${NOW}" -a "From: Debian FTP Masters " cron@ftp-master.debian.org < "${LOGFILE}" } function testingsourcelist() { @@ -685,11 +692,11 @@ function changelogs() { rsync -aHW --delete --delete-after --ignore-errors ${exportdir}/changelogs/. . sudo -H -u staticsync /usr/local/bin/static-update-component metadata.ftp-master.debian.org >/dev/null 2>&1 & - dak make-changelog -e -a backports - [[ -f /srv/backports-master.debian.org/export/changelogs/filelist.yaml ]] && xz -f /srv/backports-master.debian.org/export/changelogs/filelist.yaml - mkdir -p /srv/backports-master.debian.org/rsync/export/changelogs - cd /srv/backports-master.debian.org/rsync/export/changelogs - rsync -aHW --delete --delete-after --ignore-errors /srv/backports-master.debian.org/export/changelogs/. . + # dak make-changelog -e -a backports + # [[ -f /srv/backports-master.debian.org/export/changelogs/filelist.yaml ]] && xz -f /srv/backports-master.debian.org/export/changelogs/filelist.yaml + # mkdir -p /srv/backports-master.debian.org/rsync/export/changelogs + # cd /srv/backports-master.debian.org/rsync/export/changelogs + # rsync -aHW --delete --delete-after --ignore-errors /srv/backports-master.debian.org/export/changelogs/. . remove_changelog_lock fi }