5 # Import all constants from the pakfire module.
6 from pakfire
.constants
import *
8 PACKAGE_NAME
= "@PACKAGE_NAME@"
10 CONFIGSDIR
= "@configsdir@"
12 LOCALEDIR
= "@localedir@"
13 TEMPLATESDIR
= "@templatesdir@"
14 STATICDIR
= "@staticdir@"
16 PAKFIRE_DIR
= "/pakfire"
17 PACKAGES_DIR
= os
.path
.join(PAKFIRE_DIR
, "packages")
18 BUILD_RELEASE_DIR
= os
.path
.join(PACKAGES_DIR
, "release")
19 BUILD_SCRATCH_DIR
= os
.path
.join(PACKAGES_DIR
, "scratch")
20 REPOS_DIR
= os
.path
.join(PAKFIRE_DIR
, "repositories")
21 SOURCES_DIR
= os
.path
.join(PAKFIRE_DIR
, "sources")
23 UPLOADS_DIR
= "/var/tmp/pakfire/uploads"
25 BUFFER_SIZE
= 1024 * 100 # 100kb
27 BUGZILLA_PATTERN
= r
"(bug\s?|#)(\d+)"
28 CVE_PATTERN
= r
"(CVE)(\s|\-)(\d{4}\-\d{4})"
30 FILE_EXTENSIONS_VIEWABLE
= (
64 MSG_BUILD_FAILED_SUBJECT
= N_("[%(build_name)s] Build job failed.")
65 MSG_BUILD_FAILED
= N_("""\
66 The build job "%(build_name)s" has failed.
68 This could have a couple of reasons and needs to be investigated by you.
70 Here is more information about the incident:
72 Build name: %(build_name)s
73 Build host: %(build_host)s
75 Click on this link to get all details about the build:
76 https://pakfire.ipfire.org/job/%(build_uuid)s
79 The Pakfire Build Service""")
82 MSG_BUILD_FINISHED_SUBJECT
= N_("[%(build_name)s] Build job finished.")
83 MSG_BUILD_FINISHED
= N_("""\
84 The build job "%(build_name)s" has finished.
86 If you are the maintainer, it is up to you to push it to one or more repositories.
88 Click on this link to get all details about the build:
89 https://pakfire.ipfire.org/job/%(build_uuid)s
92 The Pakfire Build Service""")
94 # Bug update messages.
95 BUG_TESTING_MSG
= """\
96 %(package_name)s has been pushed to the %(distro_name)s %(repo_name)s repository.
98 You can provide feedback for this build here:
101 BUG_UNSTABLE_MSG
= """\
102 %(package_name)s has been pushed to the %(distro_name)s %(repo_name)s repository.
104 You can provide feedback for this build here:
107 BUG_STABLE_MSG
= """\
108 %(package_name)s has been pushed to the %(distro_name)s %(repo_name)s repository.
110 If problems still persist, please make note of it in this bug report."""
114 "status" : "MODIFIED",
115 "comment" : BUG_TESTING_MSG
,
120 "comment" : BUG_UNSTABLE_MSG
,
124 "status" : "CLOSED", "resolution" : "FIXED",
125 "comment" : BUG_STABLE_MSG
,