[26047] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r25362 - trunk/debathena/config/auto-update/debian

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Mon Aug 8 23:04:16 2011

Date: Mon, 8 Aug 2011 23:04:09 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201108090304.p79349VX015540@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2011-08-08 23:04:09 -0400 (Mon, 08 Aug 2011)
New Revision: 25362

Modified:
   trunk/debathena/config/auto-update/debian/athena-auto-update
   trunk/debathena/config/auto-update/debian/changelog
Log:
In auto-update:
  * Ensure that aptitude install succeeds before describing the update as
    successful, which apparently has been broken since 1.13


Modified: trunk/debathena/config/auto-update/debian/athena-auto-update
===================================================================
--- trunk/debathena/config/auto-update/debian/athena-auto-update	2011-08-09 01:47:09 UTC (rev 25361)
+++ trunk/debathena/config/auto-update/debian/athena-auto-update	2011-08-09 03:04:09 UTC (rev 25362)
@@ -336,10 +336,11 @@
   v aptitude --quiet --assume-yes keep-all
   complain "packages would be broken by update:" $result
 else
-  v aptitude $APTITUDE_OPTS --quiet --assume-yes install
-  # Successful update, reset $updlast
-  updlast=$(date +"%s")
-  save_success "Successful update"
+  if v aptitude $APTITUDE_OPTS --quiet --assume-yes install; then
+    # Successful update, reset $updlast
+    updlast=$(date +"%s")
+    save_success "Successful update"
+  fi
 fi
 
 # Finally, update the apt-file cache

Modified: trunk/debathena/config/auto-update/debian/changelog
===================================================================
--- trunk/debathena/config/auto-update/debian/changelog	2011-08-09 01:47:09 UTC (rev 25361)
+++ trunk/debathena/config/auto-update/debian/changelog	2011-08-09 03:04:09 UTC (rev 25362)
@@ -1,3 +1,10 @@
+debathena-auto-update (1.33) unstable; urgency=low
+
+  * Ensure that aptitude install succeeds before describing the update as
+    successful, which apparently has been broken since 1.13
+
+ -- Jonathan Reed <jdreed@mit.edu>  Mon, 08 Aug 2011 23:03:50 -0400
+
 debathena-auto-update (1.32) unstable; urgency=low
 
   * Revert changes from 1.31 (which didn't actually work) and instead run


home help back first fref pref prev next nref lref last post