diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2017-03-13 14:36:52 +0100 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2017-03-13 15:39:09 +0100 |
commit | 17d48c2b4d0948b355f62a83be7a3d7e7da4e04e (patch) | |
tree | 4f94c6671dcc9de7c91e6210e70b8158a278afd6 /build-recipe-debootstrap | |
parent | 5be3c81511bc84afb437184c1498b6ef1a96793f (diff) |
debootstrap: generate apt caches
Some packages seemingly rely on apt-cache (with populated caches) being
available during build. This seems an ugly assumption, but it does work on
the Debian buildd infrastructure so make it work on OBS as well.
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Diffstat (limited to 'build-recipe-debootstrap')
-rw-r--r-- | build-recipe-debootstrap | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build-recipe-debootstrap b/build-recipe-debootstrap index c1ef4ad..b8d4ee9 100644 --- a/build-recipe-debootstrap +++ b/build-recipe-debootstrap @@ -72,6 +72,8 @@ recipe_build_debootstrap() { mkdir -p $BUILD_ROOT/$myroot/dev/shm mount -n -ttmpfs none $BUILD_ROOT/$myroot/dev/shm + chroot $BUILD_ROOT/$myroot apt-cache gencaches + # move topdir over mv "$BUILD_ROOT/$TOPDIR" "$BUILD_ROOT/$myroot/${TOPDIR%/*}" |