diff options
author | Jasper Lievisse Adriaanse <[email protected]> | 2015-04-16 13:08:28 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-01-04 13:34:23 +0100 |
commit | 0ebcf1dcd060704f1d6adb6891592ab969569b7d (patch) | |
tree | b8a1878caf1c618bb887bf781ac8a52c06b77292 /src/fr-command-rpm.c | |
parent | a918872fa8d9d904e2bca8ed15de4ebc3a998540 (diff) | |
download | engrampa-0ebcf1dcd060704f1d6adb6891592ab969569b7d.tar.bz2 engrampa-0ebcf1dcd060704f1d6adb6891592ab969569b7d.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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fr-command-rpm.c b/src/fr-command-rpm.c index 89cd285..60e2796 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"); } |