diff --git a/aptosaurus.sh b/aptosaurus.sh index 9f117e3..2ee49df 100755 --- a/aptosaurus.sh +++ b/aptosaurus.sh @@ -47,6 +47,7 @@ if [[ "$#" -lt 1 ]]; then echo -e " ${CACTION}setup${RS} - Perform initial setup"; echo -e " ${CACTION}update${RS} - Scan for new packages and add them to the repository"; echo -e " ${CACTION}update-cron${RS} - Like ${CACTION}update${RS}, but silent unless something goes wrong"; + echo -e " ${CACTION}metafiles${RS} - Rebuild the repository metafiles only (useful if you've manually fiddled with the repo packages)"; echo -e ""; exit 1; @@ -137,13 +138,15 @@ task_update() { execute dpkg-sig -k "${gpg_key_id}" -s builder "*.deb"; task_end $?; + tasks_run "metafiles"; +} + +task_metafiles() { task_begin "Building packages file"; apt-ftparchive packages . >Packages; execute bzip2 -kf Packages; task_end $?; - - task_begin "Generating release file"; apt-ftparchive release . >Release; task_end $?;