cuisine icon indicating copy to clipboard operation
cuisine copied to clipboard

package_ensure_apt not idempotent

Open teeler opened this issue 12 years ago • 2 comments

The underlying program being executed, add-apt-repository is not idempotent and also, is not available by default, so it should be checked for as well before being executed.

teeler avatar May 02 '12 00:05 teeler

I think, this is issue is related to repository_ensure_apt, not package_ensure_apt. See:

def repository_ensure_apt(repository):
    sudo("add-apt-repository " + repository)

Lendar avatar May 25 '12 08:05 Lendar

@Lendar That was in my original comment, the underlying binary add-apt-repository is not idempotent, so calling it directly is not sufficient.

teeler avatar May 25 '12 17:05 teeler