summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>2012-02-13 03:28:42 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>2012-02-13 03:28:42 +0000
commit23152b037b5143c5007a84a727c27c7786ee117a (patch)
treeb487d55c3ae001d639b228abfe2eeb8a606b470c
parentExpand aliases. (diff)
downloadpython-updater-23152b037b5143c5007a84a727c27c7786ee117a.tar.gz
python-updater-23152b037b5143c5007a84a727c27c7786ee117a.tar.bz2
python-updater-23152b037b5143c5007a84a727c27c7786ee117a.zip
Improve handling of mtime.
-rwxr-xr-xpython-updater6
1 files changed, 4 insertions, 2 deletions
diff --git a/python-updater b/python-updater
index a646ca6..d34d916 100755
--- a/python-updater
+++ b/python-updater
@@ -743,8 +743,10 @@ for contents_file in $(find ${PKG_DBDIR}/ -name CONTENTS | sort); do
fi
done
if [[ -n "${deleted_USE_flags}" || -n "${added_USE_flags}" ]]; then
- # Update mtime of directory.
- touch "${contents_file%/CONTENTS}"
+ # Update mtime of directories.
+ touch "${PKG_DBDIR}/${CATEGORY}/${PF}"
+ touch "${PKG_DBDIR}/${CATEGORY}"
+ touch "${PKG_DBDIR}"
fi
eindent
if [[ -n "${deleted_USE_flags}" ]]; then