summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-10 13:22:06 +0200
committerErich Eckner <git@eckner.net>2018-04-10 13:22:06 +0200
commit296fbb971fdb9ca9fe8b7cfe0ebfd8e93b0ee1cf (patch)
tree8e06cd0d669d477788dd388c6b295978afd20302 /lib
parentb7c84ca8a37a9120319e3a820d3e4c67f7c1f2d7 (diff)
downloadbuilder-296fbb971fdb9ca9fe8b7cfe0ebfd8e93b0ee1cf.tar.xz
lib/mysql-functions: mysql_add_package_source: remove old_git_revision from mysql query
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 064edcd..f664b9a 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -119,7 +119,10 @@ mysql_add_package_source() {
shift
done
values="${values% * }"
- names="${names% *}"
+ names=$(
+ printf '%s\n' "${names% *}" | \
+ sed 's/ old_git_revision / /'
+ )
{
printf 'INSERT IGNORE INTO package_sources'