From 296fbb971fdb9ca9fe8b7cfe0ebfd8e93b0ee1cf Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 10 Apr 2018 13:22:06 +0200 Subject: lib/mysql-functions: mysql_add_package_source: remove old_git_revision from mysql query --- lib/mysql-functions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') 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' -- cgit v1.2.3-70-g09d2