summaryrefslogtreecommitdiffstats
path: root/config.py.in
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2024-12-16 09:33:03 +0100
committerPapoteur <papoteur@mageia.org>2024-12-16 09:33:03 +0100
commitb67336402d8aa082e73a0082478a67020f43d56d (patch)
tree7fb6e8a0293e4b416de2db0c6878c64c438a44df /config.py.in
parent03408f8ba991626cecb0262f763e83ba7d584f98 (diff)
downloadmga-advisor-topic/dnf5.tar
mga-advisor-topic/dnf5.tar.gz
mga-advisor-topic/dnf5.tar.bz2
mga-advisor-topic/dnf5.tar.xz
mga-advisor-topic/dnf5.zip
Use libdnf5 for getting the sourcestopic/dnf5
This is based on: - getting the packages cited in Source RPM field, - extracting the name - searching the package in Testing reposotories having said name - adding the source package names removing .src at end. File dnfmadbbase comes from MADb config.py.in has to be copied in config.py and adapted to the location where dnf cache will be written and to the mirror to use.
Diffstat (limited to 'config.py.in')
-rw-r--r--config.py.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/config.py.in b/config.py.in
new file mode 100644
index 0000000..6764135
--- /dev/null
+++ b/config.py.in
@@ -0,0 +1,24 @@
+# the last release
+TOP_RELEASE = 9
+# be sure that these directories are writable for the user running the application
+DATA_PATH = "/var/lib/madb"
+LOG_PATH = DATA_PATH
+MIRROR_URL = "https://fr2.rpmfind.net/linux/mageia/distrib/"
+# Name of the development version
+DEV_NAME = "cauldron"
+# Level of logging
+LOG_LEVEL = "DEBUG"
+BUGZILLA_URL = "https://bugs.mageia.org"
+# List of architectures managed
+ARCHES = {
+ "x86_64": "x86 64bits",
+ "i586": "x86 32bits",
+ "aarch64": "Arm 64bits",
+ "armv7hl": "Arm 32bits v7hl",
+}
+# Used as filter in search bar
+DISTRIBUTION = {
+ DEV_NAME: "Mageia cauldron",
+ str(TOP_RELEASE): "Mageia " + str(TOP_RELEASE),
+ str(TOP_RELEASE - 1): "Mageia " + str(TOP_RELEASE -1),
+}