From 312f14b9216d4e51b37da8ee3872d6bf53b7ea02 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 2 Aug 2013 01:25:28 +0400 Subject: [PATCH] added buldcache to process-archive.sh (still ugly)... Signed-off-by: Alex A. Naanou --- scripts/process-archive.sh | 16 ++++++++++++++++ setup.py | 7 +++++-- ui/ui.js | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/scripts/process-archive.sh b/scripts/process-archive.sh index 1ac3b894..8d1c4100 100755 --- a/scripts/process-archive.sh +++ b/scripts/process-archive.sh @@ -95,6 +95,14 @@ if [[ $ARCHIVE_ROOT == "." ]] ; then # XXX do different-sized previews... makepreview "$SIZE" "./$FROM" "./$TO" done + + # pre-build cache... + for p in */DCIM/preview\ \(RAW\)/ ; do + if ! [ -e "./$p" ] ; then + continue + fi + buildcache "./$p" + done else for FROM in ./DCIM/hi-res\ \(RAW\)/*jpg ; do TO="${FROM/hi-res\ /preview }" @@ -102,6 +110,14 @@ else # XXX do different-sized previews... makepreview "$SIZE" "./$FROM" "./$TO" done + + # pre-build cache... + for p in ./DCIM/preview\ \(RAW\)/ ; do + if ! [ -e "./$p" ] ; then + continue + fi + buildcache "./$p" + done fi diff --git a/setup.py b/setup.py index 7263ccc8..37a6703e 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ #======================================================================= __version__ = '''0.1.12''' -__sub_version__ = '''20130714221612''' +__sub_version__ = '''20130801195557''' __copyright__ = '''(c) Alex A. Naanou 2003''' @@ -64,7 +64,10 @@ setup( include_package_data = True, packages = [], - py_modules = ['buildcache'], + py_modules = [ + 'buildcache', + 'gid', + ], entry_points = { 'console_scripts': [ diff --git a/ui/ui.js b/ui/ui.js index edfcc00f..26c77c58 100755 --- a/ui/ui.js +++ b/ui/ui.js @@ -483,7 +483,7 @@ var FIELD_TYPES = { field.find('.path').val(p[0].path) } file.detach() - // focus+select the path... + // focus+select the path field... // NOTE: this is here to enable fast select-open // keyboard cycle (tab, enter,