Skip to content

Commit

Permalink
Add support for the "Build Date" field
Browse files Browse the repository at this point in the history
Fixes #140
  • Loading branch information
f2404 committed Jan 19, 2019
1 parent b912c5b commit a392842
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/package-query.8
Expand Up @@ -300,6 +300,7 @@ Format can contain:
16: update available
32: package part of group
%5: download size
%6: build date
.fi
.if n \{\
.RE
Expand Down
4 changes: 4 additions & 0 deletions src/alpm-query.c
Expand Up @@ -549,6 +549,10 @@ const char *alpm_pkg_get_str (const void *p, unsigned char c)
info = ltostr (alpm_pkg_download_size (pkg));
free_info = true;
break;
case '6':
info = ttostr (alpm_pkg_get_builddate (pkg));
free_info = true;
break;
case 'a':
info = (char *) alpm_pkg_get_arch (pkg);
break;
Expand Down

0 comments on commit a392842

Please sign in to comment.