Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-15 15:25:11 +0200
committerErich Eckner <git@eckner.net>2019-07-15 15:25:11 +0200
commit1dad6423c11e9b55dd1e1c8e95ea9b65cfb1ffcf (patch)
tree12a12b25a1726d4b14c975c5f6ff50a790e7a5cf
parent2362a68fe948715a36ddf333aab5515afa5006b3 (diff)
bin/return-assignment: fix order of joins
-rwxr-xr-xbin/return-assignment8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 68bb52f..c4b7bd5 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -976,14 +976,14 @@ cut -d' ' -f4,5 "${tmp_dir}/repository-ids" | \
fi
printf '`versions`.`id`'
printf ' FROM `install_targets`'
- if [ "${lib_link%:*}" = 'nl' ]; then
- printf ' JOIN `dependency_types`'
- printf ' ON `dependency_types`.`name`=`nl`.`dep_type`'
- fi
printf ' JOIN `%s`' \
"${lib_link%:*}"
printf ' ON `%s`.`lib`=`install_targets`.`name`' \
"${lib_link%:*}"
+ if [ "${lib_link%:*}" = 'nl' ]; then
+ printf ' JOIN `dependency_types`'
+ printf ' ON `dependency_types`.`name`=`nl`.`dep_type`'
+ fi
printf ' JOIN `versions`'
printf ' ON `versions`.`epoch`=`%s`.`epoch`' \
"${lib_link%:*}"