summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Rękorajski2021-02-22 09:12:29 (GMT)
committerJan Rękorajski2021-02-22 09:12:29 (GMT)
commit62e0054acab09997ec2f80720a21beb0d7d95bd4 (patch)
treed6ecc1f8bd0cf5048156c0b8a33fb3663a8832ac
parent2086ad423ac5b636bf1dee52a11b64941d23be7e (diff)
downloadpld-ftp-admin-62e0054acab09997ec2f80720a21beb0d7d95bd4.zip
pld-ftp-admin-62e0054acab09997ec2f80720a21beb0d7d95bd4.tar.gz
fix package header selection in freshness tool
-rwxr-xr-xwwwbin/ftp-freshness.py2
1 files changed, 1 insertions, 1 deletions
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