about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README1
-rwxr-xr-xxrecent19
2 files changed, 20 insertions, 0 deletions
diff --git a/README b/README
index 4f9efa8..845f330 100644
--- a/README
+++ b/README
@@ -25,6 +25,7 @@ https://github.com/voidlinux/xbps
   xoptdiff [-q] [PKGS...] - show template options which differ from binary package
   xpstree - display tree view of xbps-src processes
   xq [-R] PKGS... - query information about XBPS package
+  xrecent [REPOURL|XBPS_ARCH] - list packages in repo ordered by build date
   xrevbump MESSAGE TEMPLATES... - increase template revision and commit
   xsrc PKG - list source files for XBPS template
   xsubpkg PKG - lists all subpackages of a package
diff --git a/xrecent b/xrecent
new file mode 100755
index 0000000..8fb12d2
--- /dev/null
+++ b/xrecent
@@ -0,0 +1,19 @@
+#!/bin/sh
+# xrecent [REPOURL|XBPS_ARCH] - list packages in repo ordered by build date
+
+repo=http://repo.voidlinux.net/current/
+case "$1" in
+*/*)
+	repo=$1;;
+*-musl)	
+	repo=http://muslrepo.voidlinux.net/current/
+	export "XBPS_ARCH=$1";;
+?*)
+	repo=http://repo.voidlinux.net/current/
+	export "XBPS_ARCH=$1";;
+esac
+
+xbps-query -M -i -R --repository=$repo -p build-date -s '' |
+	sed 's/: /	/' |
+	sort -t '	' -k 2 |
+	column -s '	' -t