Accepting request 558847 from home:BenniBrunner:branches:devel:openSUSE:Factory

- Added subpackage which fails during update

OBS-URL: https://build.opensuse.org/request/show/558847
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory/update-test-trivial?expand=0&rev=4
This commit is contained in:
Dirk Mueller 2018-01-09 13:46:58 +00:00 committed by Git OBS Bridge
parent 0364f066ca
commit 14b9e5b2b8
3 changed files with 27 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Dec 20 14:45:28 UTC 2017 - bbrunner@suse.com
- Added subpackage which fails during update
-------------------------------------------------------------------
Mon May 23 15:38:34 UTC 2016 - bbrunner@suse.com

View File

@ -120,9 +120,25 @@ Package for testing the update stack during product development.
An update for this package should contain a 32bit-package.
%package -n update-test-broken
Summary: Test update which should not be installable
Group: System/YaST
%description -n update-test-broken
Package for testing the update stack during product development.
An update for this package should fail.
%prep
%setup -q -n %{name}
%pre -n update-test-broken
if [ $1 -ne 1 ]; then
if [[ "$(cat /etc/YaST2/build)" == *"SUSE-CaaS-Platform-"* ]]; then
sed -i -e 's,foo\t,bar\t,g' /some/none/existing/file
fi
fi
%build
echo "Package: %{name}-%{version}-%{release}" > VERSION
echo -n "Build date: " >> VERSION
@ -175,4 +191,8 @@ done
%defattr(-,root,root)
%doc README.update-test-32bit-pkg
%files -n update-test-broken
%defattr(-,root,root)
%doc README.update-test-broken
%changelog

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f4381006e6ecdb43480ec322dc806f7757bda89590b661854279ae4f53f095db
size 1580
oid sha256:2f45c995046a00691309ca7a11ecc3659eca583e870fe350000264a5fc4be2b2
size 1706