Merge lp:~jason-hobbs/curtin/apt-get-update-prior-to-apt-cache-search into lp:~curtin-dev/curtin/trunk

Proposed by Jason Hobbs
Status: Merged
Merged at revision: 150
Proposed branch: lp:~jason-hobbs/curtin/apt-get-update-prior-to-apt-cache-search
Merge into: lp:~curtin-dev/curtin/trunk
Diff against target: 11 lines (+1/-0)
1 file modified
curtin/commands/curthooks.py (+1/-0)
To merge this branch: bzr merge lp:~jason-hobbs/curtin/apt-get-update-prior-to-apt-cache-search
Reviewer Review Type Date Requested Status
Scott Moser Pending
Review via email: mp+231237@code.launchpad.net

Commit message

Run apt-get update prior to apt-cache search. Without this, the lts kernel package wasn't always found in the cache.

To post a comment you must log in.
Revision history for this message
Scott Moser (smoser) wrote :

marked as merged as this is covered in trunk commit
http://bazaar.launchpad.net/~curtin-dev/curtin/trunk/revision/150

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'curtin/commands/curthooks.py'
2--- curtin/commands/curthooks.py 2014-08-12 13:04:52 +0000
3+++ curtin/commands/curthooks.py 2014-08-18 17:49:09 +0000
4@@ -170,6 +170,7 @@
5 util.install_packages([kernel_fallback])
6 return
7
8+ in_chroot(['apt-get', 'update', '--quiet'])
9 package = "linux-{flavor}{map_suffix}".format(
10 flavor=flavor, map_suffix=map_suffix)
11 out, _ = in_chroot(['apt-cache', 'search', package], capture=True)

Subscribers

People subscribed via source and target branches