]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
Support for split debugsource packaes
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 24 Mar 2021 08:54:24 +0000 (09:54 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 24 Mar 2021 08:54:24 +0000 (09:54 +0100)
bin/pfa-from-incoming
modules/ftptree.py
wwwbin/checkrepo.sh
wwwbin/consistency-check.sh

index f86a73f52dab1312d839def7f96ae50d62dfe082..e4def7a2752537ca5a35aa149ca1a12bfef98e06 100755 (executable)
@@ -29,7 +29,7 @@ def is_debuginfo(nvr):
     if not config.separate_debuginfo:
         return False
     pkg = nvr.split('-')[:-2]
-    return pkg[-1] == 'debuginfo'
+    return pkg[-1] == 'debuginfo' or pkg[-1] == 'debugsource'
 
 def findfiles(dir):
     def filterinfos(x):
index 2c09a69d74e890728ff5d8efff30184a57e8c3d2..7d841a823631a2b66ae1dcde2fa05bcbc5dd474c 100644 (file)
@@ -99,7 +99,7 @@ class Pkg(BasePkg):
         if not config.separate_debuginfo:
             return False
         pkg = nvr.split('-')[:-2]
-        return pkg[-1] == 'debuginfo'
+        return pkg[-1] == 'debuginfo' or pkg[-1] == 'debugsource'
 
     def is_sourcefile(self, file):
         """
index db2cff1bc34739323513d2f7b17956d6fc9964f7..6573a2a346eb9ad29b5b0c70f3005ab244a80439 100755 (executable)
@@ -7,7 +7,7 @@ REPODIR=${1:-/home/pld/admins/th/ftp/test}
 expand_info() {
        awk -F ':' -vD="$REPODIR/" '
                /file:/ {
-                       if (/-debuginfo-/) {
+                       if (/-debug(info|source)-/) {
                                print D $2 "/debuginfo/" $3
                        } else {
                                print D $2 "/RPMS/" $3
index ad9059062236fec5a41887b964d71d2acf6aa71f..d12d1a3ec28de7c2fc139d916cd2a2086c4fabae 100755 (executable)
@@ -59,6 +59,7 @@ gen_list() {
        poldek \
         -O "auto directory dependencies = yes" \
        --ignore "*-debuginfo-*" \
+       --ignore "*-debugsource-*" \
        --ignore "opera-plugin32-*" \
        --ignore "nspluginwrapper-*" \
        --ignore "mbrola-voice-*" \
This page took 0.143079 seconds and 4 git commands to generate.