fix_checked_file #42

Merged
narenas merged 6 commits from fix_checked_file into main 2025-09-01 12:20:23 +02:00
3 changed files with 189 additions and 142 deletions

View File

@ -1,13 +1,21 @@
# Changelog # Changelog
## [0.10.1] - 2025-08-25
### Fixed
- Import images problems when there is not info.checked file (#2723, #2726)
- Improves logging (#2727)
## [0.10.0] - 2025-07-07 ## [0.10.0] - 2025-07-07
### Added ### Added
- OgGit functionality (#2371, #2363, #2363, #2317) - OgGit functionality (#2371, #2363, #2363, #2317)
### Removed ### Removed
- Removed unused BitTorrent-related packages and logic
- Removed unused BitTorrent-related packages and logic
## [0.9.0] - 2025-06-25 ## [0.9.0] - 2025-06-25

File diff suppressed because it is too large Load Diff

View File

@ -184,11 +184,16 @@ def main():
# Obtenemos la ruta completa de la imagen: # Obtenemos la ruta completa de la imagen:
file_path = build_file_path() file_path = build_file_path()
# Si no existe el archivo de imagen, imprimimos un mensaje de error y salimos del script: # Si no existe el archivo de imagen o el .info, imprimimos un mensaje de error y salimos del script:
if not os.path.exists(file_path): if not os.path.exists(file_path) or not os.path.exists(f"{file_path}.info.checked"):
journal.send("createTorrentSum.py: Image not found", PRIORITY=journal.LOG_ERR, SYSLOG_IDENTIFIER="ogrepo-api_DEBUG") if not os.path.exists(file_path):
print("Image file doesn't exist") journal.send(f"createTorrentSum.py: Image file '{file_path}' not found", PRIORITY=journal.LOG_ERR, SYSLOG_IDENTIFIER="ogrepo-api_DEBUG")
print(f"Image file '{file_path}' doesn't exist")
if not os.path.exists(f"{file_path}.info.checked"):
journal.send(f"createTorrentSum.py: Info file '{file_path}.info.checked' not found", PRIORITY=journal.LOG_ERR, SYSLOG_IDENTIFIER="ogrepo-api_DEBUG")
print(f"Info file '{file_path}.info.checked' doesn't exist")
sys.exit(2) sys.exit(2)
# Si la imagen está bloqueada, imprimimos un mensaje de error y salimos del script: # Si la imagen está bloqueada, imprimimos un mensaje de error y salimos del script:
if os.path.exists(f"{file_path}.lock"): if os.path.exists(f"{file_path}.lock"):