Update packaging info script

This commit is contained in:
o9000 2017-09-12 23:26:27 +02:00
parent 1480faf32f
commit d2f990366b

View file

@ -251,10 +251,10 @@ def get_suse_versions():
print >> sys.stderr, "Suse ..."
ftp = ftplib.FTP("mirror.switch.ch")
ftp.login()
releases, _ = ftp_list_dir(ftp, "/mirror/opensuse/opensuse/distribution/leap/")
releases, _ = ftp_list_dir(ftp, "/mirror/opensuse/opensuse/ports/update/leap/")
versions = []
for release in releases:
root = "/mirror/opensuse/opensuse/distribution/leap/{0}/repo/oss/suse/repodata/".format(release)
root = "/mirror/opensuse/opensuse/ports/update/leap/{0}/oss/repodata/".format(release)
_, files = ftp_list_dir(ftp, root)
for fname in files:
if fname.endswith("-primary.xml.gz"):