diff --git a/sabayon-createrepo b/sabayon-createrepo index dac01be..42c494f 100755 --- a/sabayon-createrepo +++ b/sabayon-createrepo @@ -54,20 +54,24 @@ mkdir -p /sabayon/artifacts [[ -z "\${built_pkgs}" ]] && echo "ERROR: no tbz2s found" && exit 2 if [ -d "/sabayon/artifacts/standard" ]; then + echo "=== Repository already exists, syncronizing ===" eit unlock \$repo || true eit pull --quick \$repo || true #eit sync \$repo else + echo "=== Repository is empty, intializing ===" echo "Yes" | eit init --quick \$repo eit push --quick --force fi [ -f "/etc/entropy/mykeys/key.pub" ] && [ -f "/etc/entropy/mykeys/private.key" ] && { ! eit key status \$repo; } && \ -eit key import \$repo /etc/entropy/mykeys/private.key /etc/entropy/mykeys/key.pub && { eit key sign \$repo || true; } +eit key import \$repo /etc/entropy/mykeys/private.key /etc/entropy/mykeys/key.pub && { eit key sign \$repo || true; } && { echo "=== Repository key imported successfully ==="; } +echo "=== Injecting packages ===" echo "Yes" | eit inject \${built_pkgs} || { echo "ouch unable to inject" && exit 3; } echo "Yes Yes Yes" | eit commit --quick +echo "=== Pushing built packages locally ===" eit push --quick --force EOF