diff options
author | P. 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) |
commit | cfbe5419629c38fce8d7b83fa09af22881a151f8 (patch) | |
tree | b948bbf32cc1e3523d383370c7ab512d0480cf93 /lib | |
parent | 01cd33a44eaf9f92d748a3b92ff3cd84e8b45454 (diff) |
Only set arch qual if it exists in dependency.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/deps.sh | 4 |
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# (}" |