summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-09 17:19:38 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-09 17:19:38 (EDT)
commitcfbe5419629c38fce8d7b83fa09af22881a151f8 (patch)
treeb948bbf32cc1e3523d383370c7ab512d0480cf93
parent01cd33a44eaf9f92d748a3b92ff3cd84e8b45454 (diff)
Only set arch qual if it exists in dependency.
-rw-r--r--lib/deps.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/deps.sh b/lib/deps.sh
index 1820940..521aa2f 100644
--- a/lib/deps.sh
+++ b/lib/deps.sh
@@ -72,7 +72,9 @@ ob_parse_dep()
_obpd_pkgarchqual="${_obpd_dep%% *}"
_obpd_dep=" ${_obpd_dep#* }"
_obpd_pkg="${_obpd_pkgarchqual%:*}"
- _obpd_archqual="${_obpd_pkgarchqual##*:}"
+ if [ "${_obpd_pkg}" != "${_obpd_pkgarchqual}" ]; then
+ _obpd_archqual="${_obpd_pkgarchqual##*:}"
+ fi
if [ "${_obpd_dep# (*)}" != "${_obpd_dep}" ]; then
_obpd_relver="${_obpd_dep# (}"