summaryrefslogtreecommitdiffstats
path: root/repoman
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2020-02-17 12:28:30 +0100
committerRamón M. Gómez <ramongomez@us.es>2020-02-17 12:28:30 +0100
commit7218162d69e1d4b5b78617d0026d1d274b22e5ad (patch)
tree3a4e920de727e9787d704be75dceb1e8748191ac /repoman
parent240a4dc5d182acf75657983918c31c033a848712 (diff)
#873: Fix SQL sentence in `importimage` script.
Diffstat (limited to 'repoman')
-rwxr-xr-xrepoman/bin/importimage9
1 files changed, 7 insertions, 2 deletions
diff --git a/repoman/bin/importimage b/repoman/bin/importimage
index beab8a9b..c5ac8eba 100755
--- a/repoman/bin/importimage
+++ b/repoman/bin/importimage
@@ -10,6 +10,9 @@
#@version 1.1.1 - Initial version
#@author Ramón M. Gómez, ETSII Universidad de Sevilla
#@date 2018-10-08
+#@version 1.1.1b - Fix some bugs.
+#@author Ramón M. Gómez, ETSII Universidad de Sevilla
+#@date 2020-02-17
#*/
@@ -134,8 +137,10 @@ INSERT INTO perfilessoft (descripcion, idcentro, grupoid)
LIMIT 1;
SET @profid = LAST_INSERT_ID();
INSERT INTO imagenes
- (nombreca, revision, idperfilsoft, idcentro, comentarios, grupoid, idrepositorio, fechacreacion)
- VALUES ('$IMAGE', 1, @profid, '$OUID', 'Image imported from repo $REPO', 0, @repoid, NOW());"
+ (nombreca, revision, descripcion, idperfilsoft, idcentro,
+ comentarios, grupoid, idrepositorio, tipo, fechacreacion)
+ VALUES ('$IMAGE', 1, '$IMAGE imported', @profid, '$OUID',
+ 'Image imported from repo $REPO', 0, @repoid, 1, NOW());"
fi
fi
else