Accepting request 902223 from devel:languages:python
- Remove real directory of %{python_sitelib}/pytz/zoneinfo when upgrading, before it is replaced by a symlink (bsc#1185748). OBS-URL: https://build.opensuse.org/request/show/902223 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytz?expand=0&rev=42
This commit is contained in:
commit
5decb496d6
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 24 21:46:08 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove real directory of %{python_sitelib}/pytz/zoneinfo when
|
||||
upgrading, before it is replaced by a symlink (bsc#1185748).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 28 09:56:44 UTC 2021 - pgajdos@suse.com
|
||||
|
||||
|
@ -82,6 +82,11 @@ ln -s %{_datadir}/zoneinfo %{buildroot}%{$python_sitelib}/pytz/zoneinfo
|
||||
%check
|
||||
%pyunittest discover -v
|
||||
|
||||
%pre
|
||||
if [ $1 -gt 1 ] ; then
|
||||
[ "$(readlink -e %{python_sitelib}/pytz/zoneinfo)" == "%{python_sitelib}/pytz/zoneinfo" ] && rm -rf %{python_sitelib}/pytz/zoneinfo
|
||||
fi || :
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
|
Loading…
Reference in New Issue
Block a user