Determine packaging status

Hello everyone,

I am developing a plugin for the editor which needs to determine a project’s packaging status.

More specifically, I need to find out whether the last package in the staging directory is “dirty” as in “Would rebuild if I press packaging now”.

In other words: Has this project been built and if so, would it need re-build right now?

Any ideas?

Much appreciated,
Moose