aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-aptitude
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2007-04-01 00:09:13 +0200
committerLoïc Minier <lool@dooz.org>2007-04-01 00:09:13 +0200
commit6587a44463d81d7508a5bacd787ff1b201894442 (patch)
tree52e37e22b82a13a04507ab2ce440bb08c3a6d9a3 /pbuilder-satisfydepends-aptitude
parent5efd4d516d740ed35bf6c775be31faf2cfc23601 (diff)
downloadpbuilder-6587a44463d81d7508a5bacd787ff1b201894442.tar
pbuilder-6587a44463d81d7508a5bacd787ff1b201894442.tar.gz
* Misc cleanups.
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