From 6587a44463d81d7508a5bacd787ff1b201894442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Sun, 1 Apr 2007 00:09:13 +0200 Subject: * Misc cleanups. --- pbuilder-satisfydepends-aptitude | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pbuilder-satisfydepends-aptitude') diff --git a/pbuilder-satisfydepends-aptitude b/pbuilder-satisfydepends-aptitude index 078e2d6..6f94d74 100755 --- a/pbuilder-satisfydepends-aptitude +++ b/pbuilder-satisfydepends-aptitude @@ -39,14 +39,14 @@ function filter_arch_deps() { while read INSTALLPKG; do if echo "$INSTALLPKG" | grep -q '\['; then if checkbuilddep_archdeps "$INSTALLPKG" "$ARCH"; then - continue; + continue fi fi - # output the selected package, removing the arch list - echo "$INSTALLPKG" | sed 's/\[.*\]//' + # output the selected package + echo "$INSTALLPKG" done | - # add " | " between entries - sed '$,$! s/$/ |/' | + # remove the arch list and add " | " between entries + sed 's/\[.*\]//; $,$! s/$/ |/' | xargs --no-run-if-empty done | # add ", " between entries -- cgit v1.2.3