]>
Commit | Line | Data |
---|---|---|
9137135a MT |
1 | #!/usr/bin/python |
2 | ||
f6e6ff79 | 3 | import os.path |
9137135a | 4 | |
f6e6ff79 MT |
5 | # Import all constants from the pakfire module. |
6 | from pakfire.constants import * | |
7 | ||
2b5a3b4d MT |
8 | PACKAGE_NAME = "@PACKAGE_NAME@" |
9 | ||
027a662e MT |
10 | CONFIGSDIR = "@configsdir@" |
11 | DATADIR = "@datadir@" | |
12 | LOCALEDIR = "@localedir@" | |
13 | TEMPLATESDIR = "@templatesdir@" | |
14 | STATICDIR = "@staticdir@" | |
d3e7a9fb | 15 | |
b25d332a | 16 | PAKFIRE_DIR = "/pub/pakfire" |
f6e6ff79 MT |
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") | |
22 | ||
23 | UPLOADS_DIR = "/var/tmp/pakfire/uploads" | |
9137135a | 24 | |
f6e6ff79 MT |
25 | BUFFER_SIZE = 1024 * 100 # 100kb |
26 | ||
01197c1d MT |
27 | FILE_EXTENSIONS_VIEWABLE = ( |
28 | ".c", | |
3e4fdb40 | 29 | ".cc", |
01197c1d MT |
30 | ".cfg", |
31 | ".conf", | |
32 | ".config", | |
3e4fdb40 | 33 | ".cpp", |
349aa78b | 34 | ".diff", |
01197c1d MT |
35 | ".h", |
36 | ".nm", | |
37 | ".patch", | |
3e4fdb40 MT |
38 | ".patch0", |
39 | ".patch1", | |
40 | ".patch2", | |
41 | ".patch3", | |
42 | ".patch4", | |
43 | ".patch5", | |
44 | ".patch6", | |
45 | ".patch7", | |
46 | ".patch8", | |
47 | ".patch9", | |
01197c1d MT |
48 | ".pl", |
49 | ".pm", | |
50 | ".py", | |
51 | ".S", | |
52 | ".s", | |
53 | ".sh", | |
54 | ".txt", | |
55 | "Kconfig", | |
56 | "Makefile", | |
57 | ) | |
58 | ||
f6e6ff79 MT |
59 | # Bug update messages. |
60 | BUG_TESTING_MSG = """\ | |
61 | %(package_name)s has been pushed to the %(distro_name)s %(repo_name)s repository. | |
62 | ||
63 | You can provide feedback for this build here: | |
64 | %(build_url)s""" | |
65 | ||
66 | BUG_UNSTABLE_MSG = """\ | |
67 | %(package_name)s has been pushed to the %(distro_name)s %(repo_name)s repository. | |
68 | ||
69 | You can provide feedback for this build here: | |
70 | %(build_url)s""" | |
71 | ||
72 | BUG_STABLE_MSG = """\ | |
73 | %(package_name)s has been pushed to the %(distro_name)s %(repo_name)s repository. | |
74 | ||
75 | If problems still persist, please make note of it in this bug report.""" | |
76 | ||
77 | BUG_MESSAGES = { | |
78 | "testing" : { | |
79 | "status" : "MODIFIED", | |
80 | "comment" : BUG_TESTING_MSG, | |
81 | }, | |
82 | ||
83 | "unstable" : { | |
84 | "status" : "ON_QA", | |
85 | "comment" : BUG_UNSTABLE_MSG, | |
86 | }, | |
87 | ||
88 | "stable" : { | |
89 | "status" : "CLOSED", "resolution" : "FIXED", | |
90 | "comment" : BUG_STABLE_MSG, | |
91 | }, | |
92 | } |