diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-06-18 01:45:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-06-18 01:45:54 +0100 |
commit | e21e8518815cc5fd54de9a905f2e1821ce04102c (patch) | |
tree | db3ee5e4db1b6c65d069e4ec2f5ba199300c3c69 | |
parent | 03aab682e06f31616699ef50fd3bf19cef106a0b (diff) |
be a bit more verbose
-rwxr-xr-x | backend/libsisyphus.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/backend/libsisyphus.sh b/backend/libsisyphus.sh index 644d824..1b0074e 100755 --- a/backend/libsisyphus.sh +++ b/backend/libsisyphus.sh @@ -103,22 +103,22 @@ syncportageconfig () { remotedbcsvsync () { if ! cmp /var/lib/sisyphus/csv/remote_preinst.csv /var/lib/sisyphus/csv/remote_postinst.csv > /dev/null 2>&1 ; then - echo ">>> SisyphusDB :: syncing 'remote_packages' table" + echo ">>> Syncing 'SisyphusDB remote_packages' into '/var/lib/sisyphus/db/sisyphus.db'" echo "/usr/bin/sqlite3 /var/lib/sisyphus/db/sisyphus.db" pushd /var/lib/sisyphus/db > /dev/null 2>&1 - sqlite3 sisyphus.db<<-EXIT_HERE + sqlite3 -echo sisyphus.db<<-EXIT_HERE drop table if exists remote_packages; create table remote_packages (category TEXT,name TEXT,version TEXT,slot TEXT,description TEXT); .mode csv .import /var/lib/sisyphus/csv/remote_postinst.csv remote_packages EXIT_HERE popd > /dev/null 2>&1 - echo "=== SisyphusDB :: sync completed for 'remote_packages' table" + echo "=== Sync completed for 'SisyphusDB remote_packages'" elif cmp /var/lib/sisyphus/csv/remote_preinst.csv /var/lib/sisyphus/csv/remote_postinst.csv > /dev/null 2>&1 ; then - echo ">>> SisyphusDB :: syncing 'remote_packages' table" + echo ">>> Syncing 'SisyphusDB remote_packages' into '/var/lib/sisyphus/db/sisyphus.db'" echo "/usr/bin/sqlite3 /var/lib/sisyphus/db/sisyphus.db" echo "Already up-to-date." - echo "=== SisyphusDB :: Sync completed for 'remote_packages' table" + echo "=== Sync completed for 'SisyphusDB remote_packages" fi mv /var/lib/sisyphus/csv/remote_postinst.csv /var/lib/sisyphus/csv/remote_preinst.csv } @@ -155,17 +155,19 @@ localdbcsvpost () { localdbcsvsync () { if cmp /var/lib/sisyphus/csv/local_preinst.csv /var/lib/sisyphus/csv/local_postinst.csv > /dev/null 2>&1 ; then - einfo "PortageDB unchanged :: SisyphusDB >>> no change(s) to commit..." + einfo "PortageDB && SisyphusDB local_packages in sync, nothing to do..." else - einfo "PortageDB changed :: SisyphusDB >>> commit change(s)..." + einfo "PortageDB && SisyphusDB local_packages out of sync, syncing..." + echo "/usr/bin/sqlite3 /var/lib/sisyphus/db/sisyphus.db" pushd /var/lib/sisyphus/db > /dev/null 2>&1 - sqlite3 sisyphus.db<<-EXIT_HERE + sqlite3 -echo sisyphus.db<<-EXIT_HERE drop table if exists local_packages; create table local_packages (category TEXT,name TEXT,version TEXT,slot TEXT,description TEXT); .mode csv .import /var/lib/sisyphus/csv/local_postinst.csv local_packages EXIT_HERE popd > /dev/null 2>&1 + einfo "Sync completed for SisyphusDB local_packages" fi mv /var/lib/sisyphus/csv/local_postinst.csv /var/lib/sisyphus/csv/local_preinst.csv } |