[projects/pld-ftp-admin] fix package header selection in freshness tool

baggins baggins at pld-linux.org
Mon Feb 22 10:12:53 CET 2021


commit 62e0054acab09997ec2f80720a21beb0d7d95bd4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Feb 22 10:12:29 2021 +0100

    fix package header selection in freshness tool

 wwwbin/ftp-freshness.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/wwwbin/ftp-freshness.py b/wwwbin/ftp-freshness.py
index 924f737..8ba9f3a 100755
--- a/wwwbin/ftp-freshness.py
+++ b/wwwbin/ftp-freshness.py
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/62e0054acab09997ec2f80720a21beb0d7d95bd4



More information about the pld-cvs-commit mailing list