Merge lp:~frankban/charms/oneiric/buildbot-slave/apt-sources into lp:~yellow/charms/oneiric/buildbot-slave/trunk

Proposed by Francesco Banconi
Status: Merged
Approved by: Gary Poster
Approved revision: 27
Merged at revision: 27
Proposed branch: lp:~frankban/charms/oneiric/buildbot-slave/apt-sources
Merge into: lp:~yellow/charms/oneiric/buildbot-slave/trunk
Diff against target: 12 lines (+2/-0)
1 file modified
hooks/install (+2/-0)
To merge this branch: bzr merge lp:~frankban/charms/oneiric/buildbot-slave/apt-sources
Reviewer Review Type Date Requested Status
Gary Poster (community) Approve
Review via email: mp+102074@code.launchpad.net

Description of the change

== Changes ==

APT sources replacement is installed only if apt-get update return code is 100.

To post a comment you must log in.
Revision history for this message
Gary Poster (gary) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/install'
2--- hooks/install 2012-04-05 17:01:11 +0000
3+++ hooks/install 2012-04-16 09:28:23 +0000
4@@ -110,6 +110,8 @@
5 except subprocess.CalledProcessError as e:
6 log("Error running 'apt-get update':")
7 log(str(e))
8+ if e.returncode != 100:
9+ raise
10 log("Proceeding with re-written /etc/apt/sources.list")
11 fix_apt_sources()
12 run('apt-get', 'update')

Subscribers

People subscribed via source and target branches