The libexpat project has moved to github. Fetch expat from github.

Close #3315
This commit is contained in:
Chris Johns
2018-03-05 08:29:40 +11:00
parent d255e812ab
commit 4b3e0f8e3d
3 changed files with 4 additions and 3 deletions

View File

@@ -8,7 +8,8 @@
%include %{_configdir}/base.cfg
%define expat_version 2.1.0
%define expat_version 2.1.0
%define expat_version_dir R_2_1_0
%hash sha256 expat-%{expat_version}.tar.gz 823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86

View File

@@ -18,7 +18,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
#
# Source
#
%source set expat http://downloads.sourceforge.net/project/expat/expat/%{expat_version}/expat-%{expat_version}.tar.gz
%source set expat https://github.com/libexpat/libexpat/releases/download/%{expat_version_dir}/expat-%{expat_version}.tar.gz
#
# Prepare the source code.

View File

@@ -71,7 +71,7 @@ def _humanize_bytes(bytes, precision = 1):
return '%.*f%s' % (precision, float(bytes) / factor, suffix)
def _sensible_url(url, used = 0):
space = 200
space = 100
if len(url) > space:
size = int(space - 14)
url = url[:size] + '...<see log>'