2
Hold constants used across landscape, to reduce import size when one only needs
3
to look at those values.
6
APT_PREFERENCES_SIZE_LIMIT = 1048576 # 1 MByte
10
DEPENDENCY_ERROR_RESULT = 101
12
POLICY_ALLOW_INSTALLS = 1
13
POLICY_ALLOW_ALL_CHANGES = 2
15
# The amount of time to wait while we have unknown package data before
16
# reporting an error to the server in response to an operation.
17
# The two common cases of this are:
18
# 1. The server requested an operation that we've decided requires some
19
# dependencies, but we don't know the package ID of those dependencies. It
20
# should only take a bit more than 10 minutes for that to be resolved by the
22
# 2. We lost some package data, for example by a deb archive becoming
23
# inaccessible for a while. The earliest we can reasonably assume that to be
24
# resolved is in 60 minutes, when the smart cronjob runs again.
26
# So we'll give the problem one chance to resolve itself, by only waiting for
27
# one run of smart update.
28
UNKNOWN_PACKAGE_DATA_TIMEOUT = 70 * 60