jyio / botbrew-gui

Android GUI for BotBrew
49 stars 19 forks source link

refresh package lists #4

Closed jyio closed 12 years ago

jyio commented 12 years ago

The GUI does not stay in sync with the dpkg database. When a package is installed/removed, it should refresh the GUI without requiring the user to tap the update button.

jyio commented 12 years ago

Basically, we need a super-fast way to check if the package lists have changed.

If anything changes within, the GUI (and SQLite database) needs refreshing. The quick'n'dirty way to check that is to add up all the file modification times and use the result as a "checksum". Store the checksum somewhere, and verify it when necessary.