bugfix: return function if data is already cached

This commit is contained in:
Christoph Hartmann 2015-10-12 00:18:58 +02:00
parent df4e6e4cc6
commit 6af966e08b

View file

@ -63,7 +63,7 @@ class AptRepository < Vulcano.resource(1)
# read
def read_debs
@repo_cache if defined?(@repo_cache)
return @repo_cache if defined?(@repo_cache)
# load all lists
cmd = vulcano.command("find /etc/apt/ -name \*.list -exec sh -c 'cat {} || echo -n' \\;")