summaryrefslogtreecommitdiff
path: root/src/fr-command-rpm.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <[email protected]>2015-04-16 13:08:28 +0200
committerZenWalker <[email protected]>2019-12-05 20:27:38 +0100
commitdc5d80a7d6d3f861d6de5d3705b391a91a7209d7 (patch)
treebe4d959c6b492265ec9684c76a48349de470693a /src/fr-command-rpm.c
parent9ed63df945aedeb9de04719854c05a2f7cd25f10 (diff)
downloadengrampa-dc5d80a7d6d3f861d6de5d3705b391a91a7209d7.tar.bz2
engrampa-dc5d80a7d6d3f861d6de5d3705b391a91a7209d7.tar.xz
add a configure environment variable to select the cpio path
on some systems (like OpenBSD), gcpio is prefered over the base cpio. origin commit: https://gitlab.gnome.org/GNOME/file-roller/commit/8a51165
Diffstat (limited to 'src/fr-command-rpm.c')
-rw-r--r--src/fr-command-rpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fr-command-rpm.c b/src/fr-command-rpm.c
index d4aff5e..c05c317 100644
--- a/src/fr-command-rpm.c
+++ b/src/fr-command-rpm.c
@@ -241,7 +241,7 @@ fr_command_rpm_get_capabilities (FrCommand *comm,
FrCommandCap capabilities;
capabilities = FR_COMMAND_CAN_ARCHIVE_MANY_FILES;
- if (is_program_available ("cpio", check_command))
+ if (is_program_available (CPIO_PATH, check_command))
capabilities |= FR_COMMAND_CAN_READ;
return capabilities;
@@ -252,7 +252,7 @@ static const char *
fr_command_rpm_get_packages (FrCommand *comm,
const char *mime_type)
{
- return PACKAGES ("cpio,rpm");
+ return PACKAGES (CPIO_PATH ",rpm");
}