Skip to content

Commit

Permalink
- Regenerate the cache.db when the schema.pl is modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trizen committed Mar 28, 2015
1 parent 984833e commit f8cbd41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions obmenu-generator
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# Program: obmenu-generator
# License: GPLv3
# Created on: 25 March 2011
# Latest edit on: 29 January 2015
# Latest edit on: 29 March 2015
# Website: https://github.com/trizen/obmenu-generator

#use 5.014;
Expand Down Expand Up @@ -317,8 +317,8 @@ if (!$pipe) {
*warnings::warnif = sub { };
}

# Regenerate the cache db if the config file has been modified
if ((-M $cache_db) > (-M $config_file)) {
# Regenerate the cache db if the config or schema file has been modified
if ((-M $config_file) < (-M $cache_db) or (-M _) > (-M $schema_file)) {
print STDERR "** Regenerating the cache DB...\n";
unlink $cache_db;
}
Expand Down

0 comments on commit f8cbd41

Please sign in to comment.