From 9847122ef8f0f86e3fd112aaab39b46248cf0190 Mon Sep 17 00:00:00 2001 From: zengweifeng Date: Mon, 2 Nov 2020 14:28:08 +0800 Subject: [PATCH] 1.modify the check_sourceforge function bug 2.add some new package yaml file which upstream community is sourceforge --- advisors/check_upstream.py | 2 +- upstream-info/CUnit.yaml | 6 +++--- upstream-info/docbook2X.yaml | 10 ++++------ upstream-info/freeimage.yaml | 5 +++++ upstream-info/gavl.yaml | 8 ++++---- upstream-info/mcpp.yaml | 8 ++++---- upstream-info/mtx.yaml | 8 ++++---- upstream-info/net-tools.yaml | 5 +++++ upstream-info/qrupdate.yaml | 5 +++++ upstream-info/sblim-cmpi-devel.yaml | 5 +++++ upstream-info/sendmail.yaml | 5 +++++ upstream-info/setserial.yaml | 5 +++++ upstream-info/tix.yaml | 5 +++++ upstream-info/traceroute.yaml | 5 +++++ upstream-info/xmlrpc-c.yaml | 9 ++++----- upstream-info/zd1211-firmware.yaml | 5 +++++ 16 files changed, 69 insertions(+), 27 deletions(-) create mode 100644 upstream-info/freeimage.yaml create mode 100644 upstream-info/net-tools.yaml create mode 100644 upstream-info/qrupdate.yaml create mode 100644 upstream-info/sblim-cmpi-devel.yaml create mode 100644 upstream-info/sendmail.yaml create mode 100644 upstream-info/setserial.yaml create mode 100644 upstream-info/tix.yaml create mode 100644 upstream-info/traceroute.yaml create mode 100644 upstream-info/zd1211-firmware.yaml diff --git a/advisors/check_upstream.py b/advisors/check_upstream.py index 61665369..2f80cc0a 100755 --- a/advisors/check_upstream.py +++ b/advisors/check_upstream.py @@ -486,7 +486,7 @@ def check_sourceforge(info, clean_tag=True): for tag_info in tag_infos: if filter_condition in tag_info: tag = tag_info.strip() - tag = tag.lstrip(filter_condition) + tag = tag.replace(filter_condition,"") tag = tag.strip("/download\"") tags.append(tag) if clean_tag: diff --git a/upstream-info/CUnit.yaml b/upstream-info/CUnit.yaml index 51566b43..4c1320e5 100644 --- a/upstream-info/CUnit.yaml +++ b/upstream-info/CUnit.yaml @@ -1,5 +1,5 @@ --- -version_control: svn -src_repo: http://svn.code.sf.net/p/cunit/code +version_control: sourceforge +src_repo: https://sourceforge.net/projects/cunit/files/CUnit tag_prefix: -separator: +separator: "-" diff --git a/upstream-info/docbook2X.yaml b/upstream-info/docbook2X.yaml index 38363328..574c807d 100644 --- a/upstream-info/docbook2X.yaml +++ b/upstream-info/docbook2X.yaml @@ -1,7 +1,5 @@ --- -version_control: github -src_repo: Distrotech/docbook2X -tag_prefix: "^" -separator: "." -git_url: https://github.com/Distrotech/docbook2X.git -git_tag: +version_control: sourceforge +src_repo: https://sourceforge.net/projects/docbook2x/files/docbook2x +tag_prefix: +separator: . diff --git a/upstream-info/freeimage.yaml b/upstream-info/freeimage.yaml new file mode 100644 index 00000000..06ce27b3 --- /dev/null +++ b/upstream-info/freeimage.yaml @@ -0,0 +1,5 @@ +--- +version_control: sourceforge +src_repo: https://sourceforge.net/projects/freeimage/files/Source%20Distribution +tag_prefix: +separator: . diff --git a/upstream-info/gavl.yaml b/upstream-info/gavl.yaml index a94f365e..941bca8b 100644 --- a/upstream-info/gavl.yaml +++ b/upstream-info/gavl.yaml @@ -1,5 +1,5 @@ --- -version_control: svn -src_repo: https://svn.code.sf.net/p/gmerlin/code -tag_prefix: "^" -separator: "." +version_control: sourceforge +src_repo: https://sourceforge.net/projects/gmerlin/files/gavl +tag_prefix: +separator: . diff --git a/upstream-info/mcpp.yaml b/upstream-info/mcpp.yaml index 2d991483..b6be51d1 100644 --- a/upstream-info/mcpp.yaml +++ b/upstream-info/mcpp.yaml @@ -1,5 +1,5 @@ --- -version_control: svn -src_repo: https://svn.code.sf.net/p/mcpp/code -tag_prefix: "^V" -separator: "." +version_control: sourceforge +src_repo: https://sourceforge.net/projects/mcpp/files/mcpp +tag_prefix: ^V. +separator: . diff --git a/upstream-info/mtx.yaml b/upstream-info/mtx.yaml index 48d790b7..8ad5a880 100644 --- a/upstream-info/mtx.yaml +++ b/upstream-info/mtx.yaml @@ -1,5 +1,5 @@ --- -version_control: svn -src_repo: https://svn.code.sf.net/p/mtx/code -tag_prefix: "^v" -separator: _ +version_control: sourceforge +src_repo: https://sourceforge.net/projects/mtx/files/mtx-stable +tag_prefix: +separator: . diff --git a/upstream-info/net-tools.yaml b/upstream-info/net-tools.yaml new file mode 100644 index 00000000..26661789 --- /dev/null +++ b/upstream-info/net-tools.yaml @@ -0,0 +1,5 @@ +--- +version_control: git +src_repo: https://git.code.sf.net/p/net-tools/code +tag_prefix: ^v +separator: . diff --git a/upstream-info/qrupdate.yaml b/upstream-info/qrupdate.yaml new file mode 100644 index 00000000..4ea61ab6 --- /dev/null +++ b/upstream-info/qrupdate.yaml @@ -0,0 +1,5 @@ +--- +version_control: sourceforge +src_repo: https://sourceforge.net/projects/qrupdate/files/qrupdate +tag_prefix: +separator: . diff --git a/upstream-info/sblim-cmpi-devel.yaml b/upstream-info/sblim-cmpi-devel.yaml new file mode 100644 index 00000000..52b7d96d --- /dev/null +++ b/upstream-info/sblim-cmpi-devel.yaml @@ -0,0 +1,5 @@ +--- +version_control: sourceforge +src_repo: https://sourceforge.net/projects/sblim/files/development%20pkgs/sblim-cmpi-devel +tag_prefix: +separator: . diff --git a/upstream-info/sendmail.yaml b/upstream-info/sendmail.yaml new file mode 100644 index 00000000..3849b506 --- /dev/null +++ b/upstream-info/sendmail.yaml @@ -0,0 +1,5 @@ +--- +version_control: ftp +src_repo: http://ftp.sendmail.org/ +tag_pattern: "sendmail.(.*).tar.gz(.sig)?" +separator: "." diff --git a/upstream-info/setserial.yaml b/upstream-info/setserial.yaml new file mode 100644 index 00000000..7befb609 --- /dev/null +++ b/upstream-info/setserial.yaml @@ -0,0 +1,5 @@ +--- +version_control: sourceforge +src_repo: https://sourceforge.net/projects/setserial/files/setserial +tag_prefix: +separator: . diff --git a/upstream-info/tix.yaml b/upstream-info/tix.yaml new file mode 100644 index 00000000..5f06d781 --- /dev/null +++ b/upstream-info/tix.yaml @@ -0,0 +1,5 @@ +--- +version_control: sourceforge +src_repo: https://sourceforge.net/projects/tix/files/tix +tag_prefix: +separator: . diff --git a/upstream-info/traceroute.yaml b/upstream-info/traceroute.yaml new file mode 100644 index 00000000..1e06177f --- /dev/null +++ b/upstream-info/traceroute.yaml @@ -0,0 +1,5 @@ +--- +version_control: sourceforge +src_repo: https://sourceforge.net/projects/traceroute/files/traceroute/ +tag_prefix: "-" +separator: . diff --git a/upstream-info/xmlrpc-c.yaml b/upstream-info/xmlrpc-c.yaml index d34e785f..30fac2b2 100644 --- a/upstream-info/xmlrpc-c.yaml +++ b/upstream-info/xmlrpc-c.yaml @@ -1,6 +1,5 @@ --- -version_control: svn -src_repo: https://svn.code.sf.net/p/xmlrpc-c/code -tag_dir: release_number -tag_prefix: '' -separator: "." +version_control: sourceforge +src_repo: https://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-c%20Super%20Stable +tag_prefix: +separator: . diff --git a/upstream-info/zd1211-firmware.yaml b/upstream-info/zd1211-firmware.yaml new file mode 100644 index 00000000..b1e0bbe9 --- /dev/null +++ b/upstream-info/zd1211-firmware.yaml @@ -0,0 +1,5 @@ +--- +version_control: sourceforge +src_repo: https://sourceforge.net/projects/zd1211/files/zd1211-firmware +tag_prefix: +separator: -- Gitee