Hello all, I have a package B that requires A. When I run 'yum install B' and A fails, B is installed anyway. Is this the right behavior? Can I change it? See below my spec file and the result. Thanks, Eran Name: Test Version: 1.0 Release: 1 Summary: Test #Group: License: Some License #URL: #Source0: #BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %description Test #BuildRequires: %prep %build %install rm -rf %{buildroot} mkdir -p %{buildroot}/tmp/ touch %{buildroot}/tmp/A touch %{buildroot}/tmp/B %package -n A Summary: Test A %description -n A Test A %files -n A %defattr(-,root,root,-) /tmp/A %pre -n A exit 1 %package -n B Requires: A Summary: Test B %description -n B Test B %files -n B %defattr(-,root,root,-) /tmp/B %clean rm -rf %{buildroot} %changelog Downloading Packages: (1/2): A-1.0-1.x86_64.rpm | 1.6 kB 00:00 (2/2): B-1.0-1.x86_64.rpm | 1.5 kB 00:00 ---------------------------------------------------------------------------------------------------------------- Total 150 kB/s | 3.1 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Error in PREIN scriptlet in rpm package A-1.0-1.x86_64 error: %pre(A-1.0-1.x86_64) scriptlet failed, exit status 1 error: install: %pre scriptlet failed (2), skipping A-1.0-1 Installing : B-1.0-1.x86_64 2/2 Verifying : B-1.0-1.x86_64 1/2 Verifying : A-1.0-1.x86_64 2/2 Installed: B.x86_64 0:1.0-1 Failed: A.x86_64 0:1.0-1 Visit us at the Mobile World Congress in Barcelona 25-28 February, App Planet Hall 8.1 B10 See you in Barcelona! |
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list