From 14b9e5b2b86284f1f1b145bf4b2c13a071e5b91fbbe34517e729f87b70dda271 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 9 Jan 2018 13:46:58 +0000 Subject: [PATCH] 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 --- update-test-trivial.changes | 5 +++++ update-test-trivial.spec | 20 ++++++++++++++++++++ update-test-trivial.tar.bz2 | 4 ++-- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/update-test-trivial.changes b/update-test-trivial.changes index 56bd591..6111e30 100644 --- a/update-test-trivial.changes +++ b/update-test-trivial.changes @@ -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 diff --git a/update-test-trivial.spec b/update-test-trivial.spec index 62b4153..a252380 100644 --- a/update-test-trivial.spec +++ b/update-test-trivial.spec @@ -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 diff --git a/update-test-trivial.tar.bz2 b/update-test-trivial.tar.bz2 index 55edc19..3bc6a4d 100644 --- a/update-test-trivial.tar.bz2 +++ b/update-test-trivial.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f4381006e6ecdb43480ec322dc806f7757bda89590b661854279ae4f53f095db -size 1580 +oid sha256:2f45c995046a00691309ca7a11ecc3659eca583e870fe350000264a5fc4be2b2 +size 1706