-
Committer:
Christian Boltz
-
Date:
2017-06-06 11:26:15 UTC
-
Revision ID:
apparmor@cboltz.de-20170606112615-tg3s7wpp5wtmogsr
More strict profile_storage()
This patch makes the profile_storage() data structure more strict. It
- initializes everything inside a profile with proper values
- makes the profile storage a dict() instead of a hasher(), which means
it will complain loudly when trying to access non-existing elements
(hasher() was more forgiving, but this also meant hiding bugs)
The patch also fixes a minor issue related to the more strict 'repo'
profile property in serialize_profile().
Acked-by: Seth Arnold <seth.arnold@canonical.com>