fix buildstamp creation for ubuntu-touch

ubuntu/trusty
Oliver Grawert 12 years ago
parent 1707e9118d
commit 6ff0b8e618

@ -128,8 +128,6 @@ for STE in $SUITES; do
typeset -i n=1; while [ -d ${PUBDIR}${NOW}.$n ]; do n=n+1; done typeset -i n=1; while [ -d ${PUBDIR}${NOW}.$n ]; do n=n+1; done
NOW=${NOW}.$n NOW=${NOW}.$n
fi fi
NOW=${NOW}
export NOW
LOG=${PUBDIR}${NOW}/livecd-${NOW}-${ARCH}.out LOG=${PUBDIR}${NOW}/livecd-${NOW}-${ARCH}.out
rm -f ${PUBDIR}latest rm -f ${PUBDIR}latest
@ -140,7 +138,7 @@ for STE in $SUITES; do
if $LIVE_BUILD; then if $LIVE_BUILD; then
$LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && rm -rf auto && mkdir -p auto && for f in config build clean; do ln -s /usr/share/livecd-rootfs/live-build/auto/\$f auto/; done" >> ${LOG} 2>&1 || true $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && rm -rf auto && mkdir -p auto && for f in config build clean; do ln -s /usr/share/livecd-rootfs/live-build/auto/\$f auto/; done" >> ${LOG} 2>&1 || true
$LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && lb clean --purge" >> ${LOG} 2>&1 || true $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && lb clean --purge" >> ${LOG} 2>&1 || true
if ! $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && SUITE=${STE} PROJECT=${FS} SUBPROJECT=${SUBPROJECT} ARCH=${ARCH} SUBARCH=${SUBARCH} IMAGEFORMAT=${IMAGEFORMAT} PROPOSED=${PROPOSED:+1} lb config" >> ${LOG} 2>&1; then if ! $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && NOW=${NOW} SUITE=${STE} PROJECT=${FS} SUBPROJECT=${SUBPROJECT} ARCH=${ARCH} SUBARCH=${SUBARCH} IMAGEFORMAT=${IMAGEFORMAT} PROPOSED=${PROPOSED:+1} lb config" >> ${LOG} 2>&1; then
exit 1 exit 1
fi fi
COMMAND="PROJECT=${FS} SUBPROJECT=${SUBPROJECT} ARCH=${ARCH} SUBARCH=${SUBARCH} lb build" COMMAND="PROJECT=${FS} SUBPROJECT=${SUBPROJECT} ARCH=${ARCH} SUBARCH=${SUBARCH} lb build"

7
debian/changelog vendored

@ -1,3 +1,10 @@
livecd-rootfs (2.156) UNRELEASED; urgency=low
* fix build stamp handling for ubuntu-touch (requires an RT to have IS
update BuildLiveCD on the builders)
-- Oliver Grawert <ogra@ubuntu.com> Thu, 11 Jul 2013 16:34:34 +0200
livecd-rootfs (2.155) saucy; urgency=low livecd-rootfs (2.155) saucy; urgency=low
* try to hand the exported $NOW over from live-build/auto/config as * try to hand the exported $NOW over from live-build/auto/config as

@ -89,8 +89,6 @@ PREINSTALL_POOL_SEEDS=
CHROOT_HOOKS= CHROOT_HOOKS=
BINARY_HOOKS= BINARY_HOOKS=
BUILDSTAMP="${NOW}"
add_chroot_hook () add_chroot_hook ()
{ {
CHROOT_HOOKS="${CHROOT_HOOKS:+$CHROOT_HOOKS }$1" CHROOT_HOOKS="${CHROOT_HOOKS:+$CHROOT_HOOKS }$1"
@ -399,6 +397,7 @@ lb config noauto \
echo "LB_CHROOT_HOOKS=\"$CHROOT_HOOKS\"" >> config/chroot echo "LB_CHROOT_HOOKS=\"$CHROOT_HOOKS\"" >> config/chroot
echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary
echo "BUILDSTAMP=\"$NOW\"" >> config/binary
case $PROJECT in case $PROJECT in
ubuntu-server) ubuntu-server)

Loading…
Cancel
Save