Skip to content

Commit a392842

Browse files
committed
Add support for the "Build Date" field
Fixes #140
1 parent b912c5b commit a392842

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

doc/package-query.8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ Format can contain:
300300
16: update available
301301
32: package part of group
302302
%5: download size
303+
%6: build date
303304
.fi
304305
.if n \{\
305306
.RE

src/alpm-query.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,10 @@ const char *alpm_pkg_get_str (const void *p, unsigned char c)
549549
info = ltostr (alpm_pkg_download_size (pkg));
550550
free_info = true;
551551
break;
552+
case '6':
553+
info = ttostr (alpm_pkg_get_builddate (pkg));
554+
free_info = true;
555+
break;
552556
case 'a':
553557
info = (char *) alpm_pkg_get_arch (pkg);
554558
break;

0 commit comments

Comments
 (0)