hw-cookbooks/aptly — pull request #5 by srenatus (2014-06-06 11:44:18+00:00)
Title: Use sudo for aptly calls in not_if and only_if

Without this, the conditions will always fail (and thus trigger or inhibit respectively), since for the root user, there's no ~/.aptly.conf.

Importing a dependency on sudo functioning properly imports some possible headaches on different platforms, but seems like a reasonable fix nonetheless.