Skip to content

Commit

Permalink
Add support for local file package make dependencies (%M)
Browse files Browse the repository at this point in the history
Supported by libalpm since https://git.archlinux.org/pacman.git/commit/?id=0994893
but only for package alpm backend.

It is not implemented yet by localdb and syncdb backends.

Bump libalpm requirement to 11.0.0
  • Loading branch information
larchunix committed May 31, 2018
1 parent 1638348 commit 501f1f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/package-query.8
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Format can contain:
%l: local version
%L: last submission (AUR)
%m: maintainer or packager
%M: make dependencies (AUR)
%M: make dependencies (AUR and local package tarball)
%n: name
%N: required by (Needed by)
%o: out of date (1 for true)
Expand Down
7 changes: 7 additions & 0 deletions src/alpm-query.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,13 @@ const char *alpm_pkg_get_str (const void *p, unsigned char c)
case 'm':
info = (char *) alpm_pkg_get_packager (pkg);
break;
case 'M':
if (alpm_pkg_get_origin (pkg) != ALPM_PKG_FROM_FILE) {
return NULL;
}
info = concat_dep_list (alpm_pkg_get_makedepends (pkg));
free_info = true;
break;
case 'n':
info = (char *) alpm_pkg_get_name (pkg);
break;
Expand Down

0 comments on commit 501f1f1

Please sign in to comment.