Skip to content

Instantly share code, notes, and snippets.

@allenap
Created January 3, 2014 00:15
Show Gist options
  • Save allenap/8229970 to your computer and use it in GitHub Desktop.
Save allenap/8229970 to your computer and use it in GitHub Desktop.
Example of aptdaemon not updating dependencies on Saucy. Is this broken behaviour, or are my expectations to blame?
import aptdaemon.client
def printcall(*args, **kwargs):
print("call(*%r, **%r)" % (args, kwargs))
client = aptdaemon.client.AptClient()
# I have make installed, but not abiword.
txn = client.install_packages(["make", "abiword"])
txn.connect("dependencies-changed", printcall)
txn.simulate()
print(txn.dependencies)
print(txn.packages)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment