madsmith / bash-completion-lib

Automatically exported from code.google.com/p/bash-completion-lib
GNU General Public License v2.0
0 stars 0 forks source link

Automatic clear cache after updating bash-completion-lib #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install bash-completion-lib: sudo dpkg -i
bash-completion-lib_1.2.4-1_all.deb
2. Do a completion: which foo<TAB><CTRL-C>
3. Check cache file: ls -l ~/.bash_completion_lib.d/cache~

Expected output: the timestamp of the cache file should reflect that the
file has been updated just now.  Instead, the cache file hasn't changed.

When bash_completion_lib loads the cache, it should check a
cache-version-number against the current
bash_completion_lib-version-number.  If the version numbers don't match,
the cache should be cleared.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by fvu...@gmail.com on 31 Aug 2008 at 7:09

GoogleCodeExporter commented 8 years ago
Steps to reproduce the problem (updated step 2):
1. Install bash-completion-lib: sudo dpkg -i
bash-completion-lib_1.2.4-1_all.deb
2. Reload bash_completion_lib: . /etc/bash_completion_lib/bash_completion_lib
3. Check cache file: ls -l ~/.bash_completion_lib.d/cache~

Original comment by fvu...@gmail.com on 31 Aug 2008 at 7:15

GoogleCodeExporter commented 8 years ago
Added COMP_VERSION and COMP_CACHE_VERSION.  Cache is now automatically 
regenerated
if versions mismatch.  Fixed in r51.

Original comment by fvu...@gmail.com on 3 Sep 2008 at 8:51