summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-06-27 15:30:35 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-06-27 15:30:35 +0200
commitd9c6bcf15cbb83488d355640e5e2b501d6044330 (patch)
tree744b009cfccccb707e8d250a41f40494abce832b
parentaee8196660a9101ac0305b1cbbe9d85bd014551b (diff)
downloadxtools-d9c6bcf15cbb83488d355640e5e2b501d6044330.tar.gz
xtools-d9c6bcf15cbb83488d355640e5e2b501d6044330.tar.xz
xtools-d9c6bcf15cbb83488d355640e5e2b501d6044330.zip
add xrecent
-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