id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,fix_version,see_also 217,athena-auto-update should use flock(1),andersk,,"Since `aptitude --download-only` schedules the packages for installation, this could cause the login chroot to have a bunch of scheduled updates: {{{ if ! v aptitude --quiet --assume-yes --download-only full-upgrade; then … fi … echo ""** Creating root snapshot"" /usr/sbin/athena-login-snapshot update-start … v aptitude --quiet --assume-yes keep-all v aptitude --quiet --assume-yes --download-only dist-upgrade }}} (By the way, why do we use both `aptitude --download-only full-upgrade` and `aptitude --download-only dist-upgrade`?) This could be a 6.033 case study: {{{ # Avoid confusing the system by running two updates at once. pidfile=/var/run/athena-update.pid if [ -e $pidfile ]; then if ! kill -0 ""$(cat $pidfile)"" 2>/dev/null; then rm -f $pidfile fi fi (set -o noclobber; echo $$ > $pidfile) 2>/dev/null || exit trap 'rm -f $pidfile' EXIT }}} ",defect,new,low,The Distant Future,--,,,,,