~alias/polybase-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2

[PATCH] fixed increment of packs + pack without OCaml

Details
Message ID
<20240921095646.29508-1-lucsaccoccio@disroot.org>
DKIM signature
pass
Download raw message
Patch: +2 -1
Signed-off-by: Luc-Saccoccio <lucsaccoccio@disroot.org>

Fixed a typo in the first patch + new pack for L2 not having LU2IN019

---
 packs.txt | 1 +
 polybase  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/packs.txt b/packs.txt
index 311aa6d..e11358d 100644
--- a/packs.txt
+++ b/packs.txt
@@ -1,2 +1,3 @@
L2:(('LU2IN002','TD',1),('LU2IN005','TD',1),('LU2IN018','Memento',1),('LU2IN018','TME',1),('LU2IN019','TD',1))
L2_Sans_OCaml:(('LU2IN002','TD',1),('LU2IN005','TD',1),('LU2IN018','Memento',1),('LU2IN018','TME',1))
L3_BDD:(('LU3IN009','Cours',1),('LU3IN009','TD',1))
diff --git a/polybase b/polybase
index 235ec15..1f5f345 100755
--- a/polybase
+++ b/polybase
@@ -101,7 +101,7 @@ increment() {
			pack_name=$(echo "$pack" | cut -d : -f 1)
			pack_content=$(echo "$pack" | cut -d : -f 2)
			if [ "$pack_name" "$(echo $1 | cut -d _ -f 2-)" = "$pack_name" ]; then
				sqlite3 "$DB" "UPDATE courses SET quantity = quantity - 1 WHERE (code, kind, part) IN $pack_content;"
				sqlite3 "$DB" "UPDATE courses SET quantity = quantity + 1 WHERE (code, kind, part) IN $pack_content;"
			fi
		done < /packs.txt
	else
--
2.46.0
Details
Message ID
<D4BW8M8UG7SH.2HMNT3R918GYS@disroot.org>
In-Reply-To
<20240921095646.29508-1-lucsaccoccio@disroot.org> (view parent)
DKIM signature
pass
Download raw message
Applied, me dumb dumb

To git@git.sr.ht:~alias/polybase
   b509d05..67a365b  master -> master
Reply to thread Export thread (mbox)