Skip to content

Commit

Permalink
Tell the user about cache rebuilds (-q to silence)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Dec 12, 2014
1 parent 0655e32 commit a79a41b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TradeDangerous, Copyright (C) Oliver "kfsone" Smith, July 2014
==============================================================================

v6.1.9 [wip]
. (kfsone) Tell the user when we rebulid the cache (-q to silence)
. (gulasch) Stations and distances
. (kfsone) Mineral and Microbial are now in the correct order,
. (kfsone) Big documentation cleanup,
Expand Down
7 changes: 6 additions & 1 deletion cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,12 +766,17 @@ def buildCache(tdb, tdenv):
are newer than the database.
"""

if not tdenv.quiet:
print(
"NOTE: Rebuilding cache file: this may take a moment",
file=sys.stderr
)

dbPath = tdb.dbPath
sqlPath = tdb.sqlPath
pricesPath = tdb.pricesPath

# Create an in-memory database to populate with our data.
tdenv.DEBUG0("Creating temporary database in memory")
tempPath = dbPath.with_suffix(".new")
backupPath = dbPath.with_suffix(".prev")

Expand Down

0 comments on commit a79a41b

Please sign in to comment.