From 58c9411b535302166226b8700c21fd740d44befb Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 5 Sep 2007 15:49:38 +0000 Subject: add a simple test that shows urpmi promotes pkgs when a strict require fails --- .../a.spec | 14 ++++++++++++++ .../b.spec | 15 +++++++++++++++ .../c-2.spec | 13 +++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 t/data/SPECS/split-transactions--strict-require-and-obsolete-2/a.spec create mode 100644 t/data/SPECS/split-transactions--strict-require-and-obsolete-2/b.spec create mode 100644 t/data/SPECS/split-transactions--strict-require-and-obsolete-2/c-2.spec (limited to 't/data/SPECS/split-transactions--strict-require-and-obsolete-2') diff --git a/t/data/SPECS/split-transactions--strict-require-and-obsolete-2/a.spec b/t/data/SPECS/split-transactions--strict-require-and-obsolete-2/a.spec new file mode 100644 index 00000000..b0345d65 --- /dev/null +++ b/t/data/SPECS/split-transactions--strict-require-and-obsolete-2/a.spec @@ -0,0 +1,14 @@ +Summary: x +Name: a +Version: 1 +Release: 1 +License: x +Group: x +Url: x +Requires: b +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/split-transactions--strict-require-and-obsolete-2/b.spec b/t/data/SPECS/split-transactions--strict-require-and-obsolete-2/b.spec new file mode 100644 index 00000000..9986a114 --- /dev/null +++ b/t/data/SPECS/split-transactions--strict-require-and-obsolete-2/b.spec @@ -0,0 +1,15 @@ +Summary: x +Name: b +Version: 2 +Release: 1 +License: x +Group: x +Url: x +Requires: c = %{version} +Obsoletes: bb +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/split-transactions--strict-require-and-obsolete-2/c-2.spec b/t/data/SPECS/split-transactions--strict-require-and-obsolete-2/c-2.spec new file mode 100644 index 00000000..3ede1e1e --- /dev/null +++ b/t/data/SPECS/split-transactions--strict-require-and-obsolete-2/c-2.spec @@ -0,0 +1,13 @@ +Summary: x +Name: c +Version: 2 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files -- cgit v1.2.1