]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
fix package header selection in freshness tool
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 22 Feb 2021 09:12:29 +0000 (10:12 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 22 Feb 2021 09:12:29 +0000 (10:12 +0100)
wwwbin/ftp-freshness.py

index 924f737d0409391ed3427f7364a9ee65d9c16a01..8ba9f3afd6af9001c840d74c22fb4c2329ed3e42 100755 (executable)
@@ -68,7 +68,7 @@ class Pkgs(object):
         try:
             if sys.version_info[0] == 2:
                 s = self.ts.parseSpec(spec)
-                header = s.headers()[2]
+                header = s.headers()[0]
             else:
                 s = rpm.spec(spec)
                 header = s.sourceHeader
This page took 0.230486 seconds and 4 git commands to generate.