summaryrefslogtreecommitdiff
path: root/src/dagpkg
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-04-20 23:05:01 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-04-20 23:19:37 -0400
commitcdc456c8b7c6e3eb4b11d668fb9c6e9bdec7230e (patch)
treed54d0c816a146023fbc7a54c0d5f71ecd0e69937 /src/dagpkg
parent23213bda24af601acbbea5731246a055680b48d0 (diff)
Don't use subshells in local/export/declare commands.
Only make this change in places where it shouldn't make a difference, and something weird has to be going on for the subshell to fail. This is on par with checking the return value of malloc. We don't need tests for each of these failure cases.
Diffstat (limited to 'src/dagpkg')
-rwxr-xr-xsrc/dagpkg6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dagpkg b/src/dagpkg
index bcc2bc9..3856e0b 100755
--- a/src/dagpkg
+++ b/src/dagpkg
@@ -134,13 +134,13 @@ visit_pkgbuild() {
marks[$name]=1
# Recurse into dependencies
- local d
+ local d w
for d in "${depends[@]}" "${makedepends[@]}" "${checkdepends[@]}"; do
# Cleanup dependency versions
- d=$(echo $d | sed "s/[<>=].*//")
+ d=${d%%<*}; d=${d%%>*}; d=${d%%=*}
# Where's the pkgbuild?
- local w=$(toru-where $d)
+ w=$(toru-where "$d")
# Skip if not available
test -z "$w" && continue