From 5b9eb821e590859c3baaac9d08b07019f383eed2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 8 Feb 2019 12:17:53 +0100 Subject: feeds/feed.php: some progress --- feeds/feed.php | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/feeds/feed.php b/feeds/feed.php index 177071b..fd6ae49 100644 --- a/feeds/feed.php +++ b/feeds/feed.php @@ -104,7 +104,7 @@ if ($uri_parts[0] == 'packages') { print "Recent removed packages"; break; } - if ($arch != '') + if ($arch != 'all') print " (" . $arch; if ($repo != '') print " [" . $repo . "]"; @@ -112,12 +112,51 @@ if ($uri_parts[0] == 'packages') { print ")"; print ""; print ""; - print "https://archlinux32.org" . $_SERVER['REQUEST_URI']; + print "https://archlinux32.org/packages/"; print ""; print ""; + switch ($action) { + case '': + print "Recently updated packages in the Arch Linux 32 package repositories"; + break; + case 'added': + print "Recently added packages to the Arch Linux 32 package repositories"; + break; + case 'removes': + print "Recently removed packages from the Arch Linux 32 package repositories"; + break; + } + if ($arch != 'all') + print " for the " . $arch . " architecture (including 'any' packages)"; + else + print " for all architectures"; + if ($repo != '') + print " for the " . $repo . " repository"; print ""; + print ""; + print ""; + print ""; + print "en-us"; + print ""; + print ""; +# TODO + print ""; + foreach ($packages as $package) { + print ""; + print ""; + print $package['pkgname']; + if (array_key_exists('epoch',$package)) + print $package['epoch'] . ":"; + print $package['pkgver'] . "-" . $package['pkgrel']; + if (!$package['sub_pkgrel_omitted']) + print '.' . $package['sub_pkgrel']; + pinrt ' ' . $package['architecture']; + print ""; # TODO + print ""; + } print ""; + print ""; die(); -- cgit v1.2.3-70-g09d2