Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
109 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
update-mime-database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
application/x-hlmdl-sequence:application-x-hlmdl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# This file was automatically generated by the | ||
# update-mime-database command. DO NOT EDIT! | ||
text/x-gnumakefile:gnumakefile | ||
application/x-hlmdl-sequence:**[0123456789][0123456789].sequence | ||
text/x-makefile:gnumakefile | ||
application/java-multimedia-file:*.jmf | ||
text/x-othermakefile:makefile | ||
application/x-qvm:*.qvm3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# This file was automatically generated by the | ||
# update-mime-database command. DO NOT EDIT! | ||
50:text/x-gnumakefile:gnumakefile | ||
50:application/x-hlmdl-sequence:**[0123456789][0123456789].sequence | ||
50:text/x-makefile:gnumakefile | ||
50:application/java-multimedia-file:*.jmf | ||
50:text/x-othermakefile:makefile | ||
50:application/x-qvm:*.qvm3 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
text/x-gnumakefile text/plain | ||
text/x-othermakefile text/plain | ||
text/x-makefile text/plain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
application/java-multimedia-file | ||
application/x-hlmdl-sequence | ||
application/x-otherpak | ||
application/x-pak | ||
application/x-qvm | ||
image/x-somesprite | ||
text/x-gnumakefile | ||
text/x-makefile | ||
text/x-othermakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3 | ||
1.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3 | ||
1.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
update-mime-database from shared-mime-info 1.6 has bugs with writing the number of literal and glob patterns. | ||
These tests use patched version to make 100% coverage of mime/detectors/cache.d possible. | ||
Patch is provided as update-mime-database.c.patch file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
2372a2373,2396 | ||
> typedef struct | ||
> { | ||
> GetValueFunc *get_value; | ||
> gpointer data; | ||
> guint count; | ||
> | ||
> } CountData; | ||
> | ||
> static void | ||
> count_map_entry (gpointer key, | ||
> gpointer data) | ||
> { | ||
> CountData *count_data = (CountData *)data; | ||
> gchar **values; | ||
> | ||
> values = (* count_data->get_value) (count_data->data, key); | ||
> count_data->count += g_strv_length (values) / 3; | ||
> g_strfreev (values); | ||
> } | ||
> | ||
> static gchar ** | ||
> get_glob_list_value (gpointer data, | ||
> gchar *key); | ||
> | ||
2384a2409,2410 | ||
> CountData count_data; | ||
> guint count; | ||
2394c2420,2430 | ||
< if (!write_card32 (cache, keys->len)) | ||
--- | ||
> if (get_value == &get_glob_list_value) { | ||
> count_data.count = 0; | ||
> count_data.data = map; | ||
> count_data.get_value = get_value; | ||
> g_ptr_array_foreach (keys, count_map_entry, &count_data); | ||
> count = count_data.count; | ||
> } else { | ||
> count = keys->len; | ||
> } | ||
> | ||
> if (!write_card32 (cache, count)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
DIRNAME=$(dirname -- $(readlink -f -- $0)) | ||
export XDG_DATA_HOME=$DIRNAME | ||
update-mime-database $DIRNAME/mime | ||
update-mime-database $DIRNAME/discard | ||
$DIRNAME/update-mime-database $DIRNAME/mime | ||
$DIRNAME/update-mime-database $DIRNAME/discard |