diff --git a/aurmake b/aurmake index bfd975a..2995d6d 100755 --- a/aurmake +++ b/aurmake @@ -21,11 +21,7 @@ else printf "Warning: repo-add not found, will only copy viewer.\n" >> /dev/stderr fi -[ "$mktar" = "true" ] && touch packages/.need_mktar - if [ "$1" = "publish" ]; then [ ! -x "$(command -v rsync)" ] && printf "rsync not found.\n" > /dev/stderr && exit 1 rsync -avPz packages/ ${SERVER_USER}@${SERVER_IP}:${SERVER_LOCATION}/packages/ fi - -rm -f packages/.need_mktar diff --git a/packages/index.php b/packages/index.php index 90235aa..ec66afc 100644 --- a/packages/index.php +++ b/packages/index.php @@ -133,14 +133,6 @@ function main() { } print "\t\t\t\n"; - } else if ($request == "archive") { - exec("./viewer/archive.sh", $output); - - if (file_exists("packages.tar.gz")) { - header("Location: packages.tar.gz"); - } - - exit(); } else if ($request == "view" && $query == '') { printHead($self, "speedie-aur", "speedie-aur", "My unofficial Arch Linux repository containing many useful packages"); @@ -158,9 +150,6 @@ function main() { print "\t\t\t

You can search for packages using the input box in the navbar. Then you can select a package to view details about it. You can press 'Home' in the navbar to go back to this page, or 'All' to display all available packages.

\n"; print "\t\t

Directory listing

\n"; print "\t\t\t

See this page for more information.

\n"; - print "\t\t

Download

\n"; - print "\t\t\t

If you wish, you can download the full packages/ directory containing all packages, the database and the PHP itself. This may be useful if you want to have a local repository that won't get updated, or you want to contribute back.

\n"; - print "\t\t\t

A tar.gz archive can be found here.

\n"; } else if ($request == "view" && $query != '') { $packageCount = 0; $packageVersions = array(); diff --git a/packages/viewer/archive.sh b/packages/viewer/archive.sh deleted file mode 100755 index f5ac035..0000000 --- a/packages/viewer/archive.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -dir="$(pwd)" - -if [ -f "$dir/.need_mktar" ] || [ ! -f "$dir/packages.tar.gz" ]; then - rm -f "$dir/.need_mktar" - rm -f "$dir/packages.tar.gz" - mkdir -p packages/ ; cp "$dir/"* packages/ ; cp -r "$dir/viewer" "$dir/lister" packages/ - tar -cf "$dir/packages.tar" packages/ && gzip "$dir/packages.tar" - rm -rf packages/ -fi