Compare commits

...

2 Commits

Author SHA1 Message Date
b6dd624f97 Added install hints to pass install requirements 2025-09-11 20:45:30 +02:00
47828c44db Use dirval CLI instead of direct Python script reference in backup-docker-to-local.py and declare dirval in requirements.yml
Details:
- Replaced python call to directory-validator.py with direct 'dirval' command
- Updated error message accordingly
- Added dirval as dependency in requirements.yml

Conversation: https://chatgpt.com/share/68c31763-6a84-800f-a697-50fa40e9841b
2025-09-11 20:40:21 +02:00
3 changed files with 13 additions and 6 deletions

View File

@@ -2,3 +2,11 @@
test:
python -m unittest discover -s tests/unit -p "test_*.py"
install:
@echo ">> Installation instructions:"
@echo " This software can be installed with pkgmgr under the alias 'baudolo':"
@echo " pkgmgr install baudolo"
@echo ""
@echo " 📦 pkgmgr project page:"
@echo " https://github.com/kevinveenbirkenbach/package-manager"

View File

@@ -77,15 +77,12 @@ def get_instance(container):
def stamp_directory():
"""Stamp a directory using directory-validator."""
stamp_command = (
f"python {SCRIPTS_DIRECTORY}/directory-validator/"
f"directory-validator.py --stamp {VERSION_DIR}"
)
stamp_command = f"dirval {VERSION_DIR} --stamp"
try:
execute_shell_command(stamp_command)
print(f"Successfully stamped directory: {VERSION_DIR}")
except BackupException as e:
print(f"Error stamping directory {VERSION_DIR}: {e}")
print(f"Error running 'dirval' for {VERSION_DIR}: {e}")
exit(1)
def backup_database(container, volume_dir, db_type):

View File

@@ -1,3 +1,5 @@
pacman:
- lsof
- python-pandas
- python-pandas
pkgmgr:
- dirval