summaryrefslogtreecommitdiff
path: root/update-mime-database.1
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-06-27 18:25:57 +0200
committerBastien Nocera <hadess@hadess.net>2014-06-27 18:31:18 +0200
commit29a04be6c9cbaf0865c8b57428b7b7c37fbda4c3 (patch)
tree1497c47fefd269d8d9ddac150868c4b9324426d7 /update-mime-database.1
parent4b3f9f774da8859d4f1f7e991b12832d6c09b63e (diff)
downloadshared-mime-info-29a04be6c9cbaf0865c8b57428b7b7c37fbda4c3.tar.gz
Add "-n" option to update-mime-database
When "-n" is passed, the cache will only be updated if $MIME_DIR/packages or one of the files in that directory is newer than $MIME_DIR/version. This is useful for package pre- and post-installation scripts.
Diffstat (limited to 'update-mime-database.1')
-rw-r--r--update-mime-database.17
1 files changed, 7 insertions, 0 deletions
diff --git a/update-mime-database.1 b/update-mime-database.1
index c9164e13..b18eac3b 100644
--- a/update-mime-database.1
+++ b/update-mime-database.1
@@ -16,6 +16,8 @@ update-mime-database \- a program to build the Shared MIME-Info database cache
.B \-v
| [
.B \-V
+|
+.B \-n
]
.I MIME-DIR
@@ -38,6 +40,11 @@ Print out the version information.
.TP
\fB\-V\fR
Be verbose.
+.TP
+\fB\-n\fR
+Only update if \fBMIME-DIR\fR/packages/ or a file in that directory
+is newer than \fBMIME-DIR\fR/version. This is useful for package pre-
+and post-installation scripts.
.SH ARGUMENTS
.TP