aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-aptitude
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-satisfydepends-aptitude')
-rwxr-xr-xpbuilder-satisfydepends-aptitude10
1 files changed, 5 insertions, 5 deletions
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