fix for ubuntu builds that could not find python-rpm despite the addition of the...
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 8 Feb 2014 17:45:00 +0000 (18:45 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 8 Feb 2014 17:45:00 +0000 (18:45 +0100)
lbuild-initvm.sh

index 34c9115..b346fe2 100755 (executable)
@@ -724,6 +724,8 @@ function devel_or_vtest_tools () {
                ( cd /vservers/$lxc/etc/apt ; head -1 sources.list | sed -e s,main,universe, > sources.list.d/universe.list )
                # also adding a link to updates sounds about right
                ( cd /vservers/$lxc/etc/apt ; head -1 sources.list | sed -e 's, main,-updates main,' > sources.list.d/updates.list )
+               # tell apt about the changes
+               chroot /vservers/$lxc apt-get update
            fi
            for package in $packages ; do
                # container not started yet