Simulation broken

Bug #1387153 reported by Jörn Schönyan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aptdaemon
New
Undecided
Sebastian Heinlein

Bug Description

The documentation states:

"Simulate the transaction to calculate the dependencies, the required download size and the required disk space.

The corresponding properties of the AptTransaction will be updated."

That is plain wrong or buggy, there is no event like dependencies-changed fired and the properties are not changed at all. The problem is also described here: http://askubuntu.com/questions/399389/aptdaemon-simulation-not-updating-dependencies

I need a solution for the Lubuntu team, so I hope this bugs gets some attention.

Best regards!

Changed in aptdaemon:
assignee: nobody → Sebastian Heinlein (glatzor)
Revision history for this message
Jörn Schönyan (joern-schoenyan) wrote :

After some digging, I found out that there is something missing in the documentation. After running simulate(), you need to run sync(). For example:

client = AptClient()
trans_upgrade = client.upgrade_system(False)
trans_upgrade.connect("dependencies-changed", printResult)
print('simulating')
trans_upgrade.simulate()
trans_upgrade.sync()

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.