[Rpm-maint] [rpm-software-management/rpm] dependencies not failing on simultaneous installation/upgrade of multiple packages (#208)
SATOH Fumiyasu
notifications at github.com
Thu Apr 27 15:58:23 UTC 2017
I have the following RPM packages:
1. `foo-*.rpm`, this has `%pre` scriptlet ant it must fail.
2. `bar-*.rpm`, this has `Requires(pre): foo`.
I try to install these packages at once as the following:
```console
# ls *.rpm
bar-1-1.noarch.rpm foo-1-1.noarch.rpm
# rpm -iv *.rpm
Preparing packages...
error: %prein(foo-1-1.noarch) scriptlet failed, exit status 1
error: foo-1-1.noarch: install failed
bar-1-1.noarch
# rpm -qa |egrep 'foo|bar'
bar-1-1
```
I think RPM must not install `bar` package in this situation
because pre-required package `foo` installation failed.
`foo.spec`:
```
Summary: Foo
Name: foo
Version: 1
Release: 1
Group: test group
License: test license
BuildArch: noarch
%description
Foo
%install
mkdir %{buildroot}
touch %{buildroot}/%{name}
%pre
false
%files
/%{name}
```
`bar.spec`:
```
Summary: Bar
Name: bar
Version: 1
Release: 1
Group: test group
License: test license
BuildArch: noarch
Requires(pre): foo
%description
Bar
%install
mkdir %{buildroot}
touch %{buildroot}/%{name}
%files
/%{name}
```
See also:
* rpm: dependencies not failing on simultaneous installation/upgrade of multiple packages - Stack Overflow
http://stackoverflow.com/questions/37722728/rpm-dependencies-not-failing-on-simultaneous-installation-upgrade-of-multiple-p
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/208
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170427/bdcbd8b2/attachment-0001.html>
More information about the Rpm-maint
mailing list