diff options
author | Victor Kareh <[email protected]> | 2019-02-22 10:19:33 -0500 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-03-06 02:31:28 +0100 |
commit | c8665be751fed52d22d263e3b1a02cec4ac1aa34 (patch) | |
tree | eaf33067922438db03d9c06208398a55082273ef /src/fr-command-ar.c | |
parent | 0672e308b62165dc688a60449f6f2205af634303 (diff) | |
download | engrampa-c8665be751fed52d22d263e3b1a02cec4ac1aa34.tar.bz2 engrampa-c8665be751fed52d22d263e3b1a02cec4ac1aa34.tar.xz |
Support .udeb package format
This enables support for udeb (micro-deb) files, which are a package format used during bootstrapping a Debian installation. They have the same mimetype as regular deb files.
Diffstat (limited to 'src/fr-command-ar.c')
-rw-r--r-- | src/fr-command-ar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fr-command-ar.c b/src/fr-command-ar.c index 09d7640..dbc4320 100644 --- a/src/fr-command-ar.c +++ b/src/fr-command-ar.c @@ -277,8 +277,8 @@ fr_command_ar_handle_error (FrCommand *comm, } -const char *ar_mime_type[] = { "application/x-ar", - "application/x-deb", +const char *ar_mime_type[] = { "application/x-ar", + "application/vnd.debian.binary-package", NULL }; @@ -298,7 +298,7 @@ fr_command_ar_get_capabilities (FrCommand *comm, capabilities = FR_COMMAND_CAN_ARCHIVE_MANY_FILES; if (is_program_available ("ar", check_command)) { - if (is_mime_type (mime_type, "application/x-deb")) + if (is_mime_type (mime_type, "application/vnd.debian.binary-package")) capabilities |= FR_COMMAND_CAN_READ; else if (is_mime_type (mime_type, "application/x-ar")) capabilities |= FR_COMMAND_CAN_READ_WRITE; |