]> git.ipfire.org Git - people/jschlag/pbs.git/blob - backend/constants.py
Initial import.
[people/jschlag/pbs.git] / backend / constants.py
1 #!/usr/bin/python
2
3 N_ = lambda x: x
4
5 # NEVER EVER CHANGE ONE OF THE IDS!
6 LOG_BUILD_CREATED = 1
7 LOG_BUILD_STATE_PENDING = 2
8 LOG_BUILD_STATE_DISPATCHING = 3
9 LOG_BUILD_STATE_RUNNING = 4
10 LOG_BUILD_STATE_FAILED = 5
11 LOG_BUILD_STATE_PERM_FAILED = 6
12 LOG_BUILD_STATE_DEP_ERROR = 7
13 LOG_BUILD_STATE_WAITING = 8
14 LOG_BUILD_STATE_FINISHED = 9
15 LOG_BUILD_STATE_UNKNOWN = 10
16 LOG_BUILD_STATE_UPLOADING = 11
17
18 LOG_PKG_CREATED = 20
19
20
21 LOG2MSG = {
22 LOG_BUILD_CREATED : N_("Build job created"),
23 LOG_BUILD_STATE_PENDING : N_("Build job is now pending"),
24 LOG_BUILD_STATE_DISPATCHING : N_("Build job is dispatching"),
25 LOG_BUILD_STATE_RUNNING : N_("Build job is running"),
26 LOG_BUILD_STATE_FAILED : N_("Build job has failed"),
27 LOG_BUILD_STATE_PERM_FAILED : N_("Build job has permanently failed"),
28 LOG_BUILD_STATE_DEP_ERROR : N_("Build job has dependency errors"),
29 LOG_BUILD_STATE_WAITING : N_("Build job is waiting for the source package"),
30 LOG_BUILD_STATE_FINISHED : N_("Build job is finished"),
31 LOG_BUILD_STATE_UNKNOWN : N_("Build job has an unknown state"),
32 LOG_BUILD_STATE_UPLOADING : N_("Build job is uploading"),
33 }
34
35 UPLOADS_DIR = "/var/tmp/pakfire/uploads"
36
37 MSG_BUILD_FAILED_SUBJECT = N_("[%(build_name)s] Build job failed.")
38 MSG_BUILD_FAILED = N_("""\
39 The build job "%(build_name)s" has failed.
40
41 This could have a couple of reasons and needs to be investigated by you.
42
43 Here is more information about the incident:
44
45 Build name: %(build_name)s
46 Build host: %(build_host)s
47
48 Click on this link to get all details about the build:
49 http://pakfire.ipfire.org/build/%(build_uuid)s
50
51 Sincerely,
52 The Pakfire Build Service""")
53
54
55 MSG_BUILD_FINISHED_SUBJECT = N_("[%(build_name)s] Build job finished.")
56 MSG_BUILD_FINISHED = N_("""\
57 The build job "%(build_name)s" has finished.
58
59 If you are the maintainer, it is up to you to push it to one or more repositories.
60
61 Click on this link to get all details about the build:
62 http://pakfire.ipfire.org/build/%(build_uuid)s
63
64 Sincerely,
65 The Pakfire Build Service""")