From c22ce6e12978e822660ee45170cf1a4d682e4187 Mon Sep 17 00:00:00 2001 From: codehelp Date: Sun, 3 Oct 2010 15:27:20 +0000 Subject: [PATCH] * Remove aptsources lists in bootstrap phase (Closes: #593561) * Improve check-deps to find missing packages * [INTL:fr] French program translation update (Closes: #598873) git-svn-id: http://emdebian.org/svn/current@7520 563faec7-e20c-0410-992a-a66f704d0ccd --- check-deps.sh | 39 +++++++++++++++++++++++---------------- debian/changelog | 11 ++++++++--- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/check-deps.sh b/check-deps.sh index 68e1a94..49c3ace 100755 --- a/check-deps.sh +++ b/check-deps.sh @@ -63,6 +63,9 @@ for pkg in $DEPS; do if [ "apt" = "$name" ]; then continue fi + if [ -z "$name" ]; then + continue + fi orlist=$(echo $pkg|grep "|" || true) while [ -n "$orlist" ]; do ORPKG=`echo $pkg|cut -d'|' -f2|sed -e 's/^ //'` @@ -82,22 +85,22 @@ for pkg in $DEPS; do set +e CHECK=`dpkg --compare-versions $POLICY "$VERCMP" $VERLIMIT ; echo $?` set -e - fi - if [ -z "$CHECK" ]; then - VERLIMIT= - VERCMP= - name=$(echo $ALTERNATE|sed -e 's/^ //'|cut -d' ' -f1) - if [ -n `echo $ALTERNATE|grep '('` ]; then - VERLIMIT=`echo $ALTERNATE|cut -d'(' -f2|tr -d ')'|tr -d '\n'|grep -v $name || true` - VERCMP=`echo $VERLIMIT|sed -e 's/\(.*\) \(.*\)/\1/'` - VERLIMIT=`echo $VERLIMIT|sed -e 's/\(.*\) \(.*\)/\2/'` - fi - POLICY=`LC_ALL=C apt-cache policy $name 2>/dev/null|grep Candidate|cut -d':' -f2-3|tr -d ' '` - if [ -n "$POLICY" ]; then - if [ -n "$VERLIMIT" ]; then - set +e - CHECK=`dpkg --compare-versions $POLICY "$VERCMP" $VERLIMIT ; echo $?` - set -e + if [ -z "$CHECK" ]; then + VERLIMIT= + VERCMP= + name=$(echo $ALTERNATE|sed -e 's/^ //'|cut -d' ' -f1) + if [ -n `echo $ALTERNATE|grep '('` ]; then + VERLIMIT=`echo $ALTERNATE|cut -d'(' -f2|tr -d ')'|tr -d '\n'|grep -v $name || true` + VERCMP=`echo $VERLIMIT|sed -e 's/\(.*\) \(.*\)/\1/'` + VERLIMIT=`echo $VERLIMIT|sed -e 's/\(.*\) \(.*\)/\2/'` + fi + POLICY=`LC_ALL=C apt-cache policy $name 2>/dev/null|grep Candidate|cut -d':' -f2-3|tr -d ' '` + if [ -n "$POLICY" ]; then + if [ -n "$VERLIMIT" ]; then + set +e + CHECK=`dpkg --compare-versions $POLICY "$VERCMP" $VERLIMIT ; echo $?` + set -e + fi fi fi fi @@ -113,6 +116,10 @@ for pkg in $DEPS; do if [ -n "$YES" ]; then CMD="$CMD -y $name" fi + MISSING=`dpkg-query -W -f '\${Status}' $name 2>/dev/null | grep "install ok installed"|sed -e 's/ //g'` + if [ -z "$MISSING" ]; then + CMD="$CMD $name" + fi done if [ -n "$ERR" ]; then echo Some packages are not available: $ERR diff --git a/debian/changelog b/debian/changelog index 2ca7bb4..4176ee3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,14 +6,18 @@ multistrap (2.1.8) experimental; urgency=low * Add more synopsis information to manual page. (Closes: #592621) * Aim 2.1.8 at experimental as squeeze is frozen and this version includes possibly disruptive changes. + * Remove aptsources lists in bootstrap phase (Closes: #593561) - [Wookey] + [ Wookey ] * Add support for 'flat' apt-ftparchive-style URLs * Include chroot.sh preventing services being started during chroot creation * Always use the host apt keyring when bootstrapping, since we don't have one yet in the target root. - -- Neil Williams Sat, 02 Oct 2010 16:53:47 +0100 + [ Neil Williams ] + * Improve check-deps to find missing packages + + -- Neil Williams Sun, 03 Oct 2010 16:17:16 +0100 multistrap (2.1.7) unstable; urgency=low @@ -29,8 +33,9 @@ multistrap (2.1.7) unstable; urgency=low * [INTL:vi] Vietnamese program translation update (Closes: #598476) * Pre-handle keyring packages using GPG for use with apt >= 0.8 (Closes: #595017) + * [INTL:fr] French program translation update (Closes: #598873) - -- Neil Williams Sat, 02 Oct 2010 16:27:01 +0100 + -- Neil Williams Sat, 02 Oct 2010 19:26:02 +0100 multistrap (2.1.6) unstable; urgency=low