diff --git a/lib/resources/apt.rb b/lib/resources/apt.rb index d5f32a748..24ce1022d 100644 --- a/lib/resources/apt.rb +++ b/lib/resources/apt.rb @@ -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' \\;")