From edc47e7c7514f38130f0d332a703c387f1feba4d Mon Sep 17 00:00:00 2001 From: sam#gemmi-win10 Date: Sun, 10 Nov 2024 15:39:04 +0800 Subject: [PATCH] dist/opsuse: fix opensuse 16@ustc --- distros/src/Dockerfile.zyp-opensuse | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/distros/src/Dockerfile.zyp-opensuse b/distros/src/Dockerfile.zyp-opensuse index 69222dd..b0473d5 100644 --- a/distros/src/Dockerfile.zyp-opensuse +++ b/distros/src/Dockerfile.zyp-opensuse @@ -48,20 +48,20 @@ RUN \ # test "15.0" != "${VER}" && exit 0; \ \ # export dm="mirrors.ustc.edu.cn"; \ - # zypper ar -fc https://$dm/opensuse/distribution/leap/${VER}/repo/oss openSUSE-Aliyun-OSS; \ - # zypper ar -fc https://$dm/opensuse/distribution/leap/${VER}/repo/non-oss openSUSE-Aliyun-NON-OSS; \ - # zypper ar -fc https://$dm/opensuse/update/leap/${VER}/oss openSUSE-Aliyun-UPDATE-OSS; \ - # zypper ar -fc https://$dm/opensuse/update/leap/${VER}/non-oss openSUSE-Aliyun-UPDATE-NON-OSS; \ + # zypper ar -fc https://$dm/opensuse/distribution/leap/${VER}/repo/oss openSUSE-Asia-OSS; \ + # zypper ar -fc https://$dm/opensuse/distribution/leap/${VER}/repo/non-oss openSUSE-Asia-NON-OSS; \ + # zypper ar -fc https://$dm/opensuse/update/leap/${VER}/oss openSUSE-Asia-UPDATE-OSS; \ + # zypper ar -fc https://$dm/opensuse/update/leap/${VER}/non-oss openSUSE-Asia-UPDATE-NON-OSS; \ \ # 163: opensuse> openSUSE - export dm="mirrors.163.com"; \ - test "15.6" == "${VER}" && export dm="mirrors.ustc.edu.cn"; \ - zypper ar -fc https://$dm/openSUSE/distribution/leap/${VER}/repo/oss openSUSE-Aliyun-OSS; \ - zypper ar -fc https://$dm/openSUSE/distribution/leap/${VER}/repo/non-oss openSUSE-Aliyun-NON-OSS; \ - zypper ar -fc https://$dm/openSUSE/update/leap/${VER}/oss openSUSE-Aliyun-UPDATE-OSS; \ - zypper ar -fc https://$dm/openSUSE/update/leap/${VER}/non-oss openSUSE-Aliyun-UPDATE-NON-OSS; \ + export dm="mirrors.163.com/openSUSE"; \ + test "15.6" == "${VER}" && export dm="mirrors.ustc.edu.cn/opensuse"; \ + zypper ar -fc https://$dm/distribution/leap/${VER}/repo/oss openSUSE-Asia-OSS; \ + zypper ar -fc https://$dm/distribution/leap/${VER}/repo/non-oss openSUSE-Asia-NON-OSS; \ + zypper ar -fc https://$dm/update/leap/${VER}/oss openSUSE-Asia-UPDATE-OSS; \ + zypper ar -fc https://$dm/update/leap/${VER}/non-oss openSUSE-Asia-UPDATE-NON-OSS; \ \ - cd /etc/zypp/repos.d && ls |grep -v Aliyun |while read one; do rm -f $one; done; \ + cd /etc/zypp/repos.d && ls |grep -v Asia |while read one; do rm -f $one; done; \ find /etc/zypp/repos.d; \ zypper clean; rm -rf /var/cache/zypp; RUN \