Skip to content

Commit

Permalink
dist/opsuse: fix opensuse 16@ustc
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Nov 10, 2024
1 parent b5bbdfd commit edc47e7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions distros/src/Dockerfile.zyp-opensuse
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit edc47e7

Please sign in to comment.