Compare commits

..

27 Commits

Author SHA1 Message Date
Vincent Riquer
a5ae4fdecf getDestFile: replace with placeholder AFTER sanitizeFile (who mangles our placeholder) 2026-02-15 05:05:49 +01:00
Vincent Riquer
67f670779b getDestDir: replace \n with SQL placeholder before passing through toascii 2026-02-15 05:05:49 +01:00
Vincent Riquer
d646212f1d toys: cleanup 2026-02-15 05:05:49 +01:00
Vincent Riquer
f56bf00916 toys fixes
checkmissing: add missing read -d \0
cleandestinations: use NULL separator in find, use SQL placedholmder
2026-02-15 05:05:49 +01:00
Vincent Riquer
3e01f47ea8 decodeSox, decodeMpcdec, decodeOpus: use SQL placeholder 2026-02-15 05:05:49 +01:00
Vincent Riquer
063f379f7d copyFiles_action: use SQL placeholder 2026-02-15 05:05:49 +01:00
Vincent Riquer
ca4542eb81 getFiles, getDestDir, getDestFile: use SQL placeholder 2026-02-15 05:05:49 +01:00
Vincent Riquer
4e8586276a SQL: replace LF with placeholde in Select, the other way around in Insert 2026-02-15 05:05:49 +01:00
Vincent Riquer
66ff422df0 DEV changelog 2026-02-15 05:05:49 +01:00
Vincent Riquer
6e58692c9d v1.0.5 changelog 2026-02-15 05:05:49 +01:00
Vincent Riquer
11d7d68de7 missing space between read args in Insert() 2026-02-15 05:05:49 +01:00
Vincent Riquer
8c3f1aa613 Insert(): missing -r 2026-02-15 05:05:49 +01:00
Vincent Riquer
99e7ee085d bonus: don't strip backslashes 2026-02-15 05:05:49 +01:00
Vincent Riquer
21779ddeec Make it all work 2026-02-15 05:05:49 +01:00
Vincent Riquer
a7dee41bec toys: use NULL in reads from db 2026-02-15 05:05:49 +01:00
Vincent Riquer
d0f2859ba2 tags: use NULL in reads from db 2026-02-15 05:05:49 +01:00
Vincent Riquer
0bbab638b0 tasks & workers: use NULL in reads from db 2026-02-15 05:05:49 +01:00
Vincent Riquer
4546b397c3 copy: use NULL in reads from db 2026-02-15 05:05:49 +01:00
Vincent Riquer
810636b16f dh helpers: use NULL in reads from db 2026-02-15 05:05:49 +01:00
Vincent Riquer
d4bdbb4a68 atom: use NULL in reads from db 2026-02-15 05:05:49 +01:00
Vincent Riquer
30c3d31791 openDatabase: remove both fifo at oince 2026-02-15 05:05:49 +01:00
Vincent Riquer
7310c1180a open database with -newline set to NULL 2026-02-15 05:05:49 +01:00
Vincent Riquer
a6cd3f15e6 getFiles: use NULL as separator 2026-02-15 05:05:49 +01:00
Vincent Riquer
8d0c2ac4a5 quickfix: don't hang waiting on bg jobs with SQL debug 2026-02-14 05:38:39 +01:00
ScriptFanix
c94b6b40c3 Merge branch '30-timers-don-t-display-normally-since-1-0-5' into 'dev'
Resolve "Timers don't display normally since 1.0.5"

See merge request atom/AtOM!41
2026-02-14 04:19:23 +01:00
ScriptFanix
85129c5e35 Resolve "Timers don't display normally since 1.0.5" 2026-02-14 04:19:23 +01:00
Vincent Riquer
9fabba812b cHANGELOG: Create DEV section 2026-01-16 04:11:06 +01:00
5 changed files with 9 additions and 24 deletions

View File

@ -1,11 +1,5 @@
# 1.0.6
### BUGS
# DEV
* Support for newline character in filenames
* Fix obsolete files deletion
### BUGS (Minor)
* Fix timing information
* Fix level 3+ debug levels (hanging waiting for child processes)
# 1.0.5
### BUGS (Minor)

View File

@ -32,7 +32,7 @@ Here's what I have for my tests:
* URL: https://framagit.org/atom/AtOM/
* Author: Vincent Riquer <vincent+prog.atom@riquer.fr>
* Copyright/left: 2012-2013,2015,2025-2026 Vincent Riquer - GPLv3
* Copyright/left: 2012-2013,2015,2025 Vincent Riquer - GPLv3
## Dependencies
### Required:

6
atom
View File

@ -224,8 +224,8 @@ do
do
removeFileId=${line%%::AtOM:SQL:Sep::*}
rest=${line#*::AtOM:SQL:Sep::}
removeFileDestName=${rest%%::AtOM:SQL:Sep::*}
rest=${rest#*::AtOM:SQL:Sep::}
removeFileDestName=${line%%::AtOM:SQL:Sep::*}
rest=${line#*::AtOM:SQL:Sep::}
removefile[$removeFileId]="${destinationpath["$removeFileDestName"]}/${rest%%::AtOM:SQL:Sep::*}"
read -u4 -r -d $'\0' line
done
@ -239,7 +239,7 @@ do
filename=${removefile[id]}
if [ -n "$filename" ]
then
if rm "$filename"
if rm -f "$filename"
then
Delete destination_files <<<"id = $id"
(( ++deleted ))

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
currentdbversion=8
currentdbversion=7
checkDatabaseVersion() {
local dbversion
if dbversion=$(Select atom version <<<"\"1\" = 1")
@ -15,9 +15,9 @@ checkDatabaseVersion() {
dbversion=$(Select atom version <<<"\"1\" = 1")
done
else
echo "Database schema version $dbversion is" \
"higher thanthat of this version of" \
"AtOM ($currentdbversion). Bailing out." >&2
echo "Database schema version $dbversion is higher than
that of this version of AtOM
($currentdbversion). Bailing out." >&2
exit $EDBVERSION
fi
else

View File

@ -1,9 +0,0 @@
#!/usr/bin/env bash
upgradedatabase_7_8() {
echo "Upgrading database to version 8... (backup is $database.bak_v7)"
cp "$database" "$database.bak_v7"
echo 'Deletion of old files was failing. Users of previous versions (YOU!) are strongly advised to run cleandestinations with the "-r" flag.'
read -p "Press Enter to continue..."
Update atom version 8 <<<"1 = 1"
}