Package: apt Version: 0.7.21 Severity: normal File: /usr/bin/apt-config Hi,
I'm trying to use the apt-conf format to store some settings for ia32-apt-get. For example the architecture ia32-apt-get should fetch packages from. Currently the file only contains IA32::Architectures {"amd64"; "i386";}; % apt-config -c ia32-libs-tools/00ia32-libs-tools dump | grep IA32 IA32 ""; IA32::Architectures ""; IA32::Architectures:: "amd64"; IA32::Architectures:: "i386"; % apt-config -c ia32-libs-tools/00ia32-libs-tools shell FOO IA32::Architectures FOO='' % apt-config -c ia32-libs-tools/00ia32-libs-tools shell FOO IA32::Architectures:: There seems to be no option in shell mode to extract the Architectures values. I can't think of a way how to do it without involving bashism for arrays or get problems with whitespaces so this might not actually be fixable. But then it should be documented in the manpage on how to extract the values via "dump", e.g: for i in $(apt-config -c ia32-libs-tools/00ia32-libs-tools dump \ | grep "^IA32::Architectures:: " \ | sed 's/^[^ ]* \(.*\);$/\1/'); do echo "Got arch '$(eval echo $i)'" done MfG Goswin -- Package-specific info: -- (/etc/apt/preferences present, but not submitted) -- -- (/etc/apt/sources.list present, but not submitted) -- -- System Information: Debian Release: squeeze/sid APT prefers transitional-i386 APT policy: (500, 'transitional-i386'), (500, 'unstable'), (400, 'unstable-i386'), (1, 'experimental-i386'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.29.4-frosties-1 Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages apt depends on: ii debian-archive-keyring 2009.01.31 GnuPG archive keys of the Debian a ii libc6 2.9-18 GNU C Library: Shared libraries ii libgcc1 1:4.4.0-10 GCC support library ii libstdc++6 4.4.0-10 The GNU Standard C++ Library v3 apt recommends no packages. Versions of packages apt suggests: ii apt-doc 0.7.21 Documentation for APT ii aptitude 0.4.11.11-1+b1 terminal-based package manager ii bzip2 1.0.5-3 high-quality block-sorting file co ii dpkg-dev 1.15.3 Debian package development tools ii lzma 4.43-14 Compression method of 7z format in ii python-apt 0.7.10.4 Python interface to libapt-pkg ii synaptic 0.62.7 Graphical package manager -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org