linaro-pkg team mailing list archive
-
linaro-pkg team
-
Mailing list archive
-
Message #00919
Bug#668401: linaro-hwpack-install: add FORCE_OPTIONS to apt update
Package: linaro-image-tools
Version: 2012.03-1
Severity: wishlist
Tags: patch
Hello,
linaro-hwpack-install stops and asks for user interaction when trying to
update APT cache from unsigned repositories. Could you please allow
FORCE_OPTIONS to be present when APT tries to update its cache?
Find attached a proposed patch to fix the issue:
--- linaro-image-tools-2012.03.orig/linaro-hwpack-install
+++ linaro-image-tools-2012.03/linaro-hwpack-install
@@ -181,17 +181,17 @@ fi
echo "deb file:${HWPACK_DIR}/pkgs ./" > "$SOURCES_LIST_FILE"
cat /etc/apt/sources.list >> "$SOURCES_LIST_FILE"
-echo "Updating apt package lists ..."
-$sudo apt-get -o "$APT_GET_OPTIONS" update -q
-
-echo -n "Installing packages ..."
-
if [ "$FORCE_YES" == "yes" ]; then
FORCE_OPTIONS="--yes --force-yes"
else
FORCE_OPTIONS=""
fi
+echo "Updating apt package lists ..."
+$sudo apt-get $FORCE_OPTIONS -o "$APT_GET_OPTIONS" update -q
+
+echo -n "Installing packages ..."
+
# "newer" hwpacks contain a dependency package whose Depends is the
# same as the packages config setting from the file the hwpack was
# build from. But if we just installed that, a newer version of a
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (900, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-2-686-pae (SMP w/4 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages linaro-image-tools depends on:
ii apt-utils 0.8.15.10
ii dosfstools 3.0.12-1
ii parted 2.3-8
ii python 2.7.2-10
ii python-argparse 1.2.1-2
ii python-dbus 0.84.0-3
ii python-debian 0.1.21
ii python-linaro-image-tools 2012.03-1
ii python-parted 3.6-4
ii sudo 1.8.3p2-1
ii u-boot-tools 2011.12-2
Versions of packages linaro-image-tools recommends:
ii btrfs-tools <none>
ii command-not-found 0.2.38-1
ii qemu-user-static 1.0.1+dfsg-1
ii udisks 1.0.4-4
linaro-image-tools suggests no packages.
-- no debconf information