[Rpm-maint] [rpm-software-management/rpm] 4.5.1: rpm cannot replace directory by file on upgrade (#964)
Tomasz Kłoczko
notifications at github.com
Tue Dec 3 02:19:58 UTC 2019
I made some test unit for that issue.
test-replace-directory-1.0 package has in /mnt/file directory /mnt/file/file. Than 2.0 has only /mnt/file file.
Here is result:
<pre>[root at barrel RPMS]# rpm -ivh test-replace-directory-1.0-1.x86_64.rpm
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:test-replace-directory-1.0-1 ################################# [100%]
[root at barrel RPMS]# rpm -Uvh test-replace-directory-2.0-1.x86_64.rpm
Verifying... ################################# [100%]
Preparing... ################################# [100%]
file /mnt/file from install of test-replace-directory-2.0-1.x86_64 conflicts with file from package test-replace-directory-1.0-1.x86_64
</pre>
```
Summary: test package
Name: test-replace-directory
Version: 1.0
Release: 1
License: Test
%description
Test package.
%prep
%build
%install
%__mkdir_p %{buildroot}/mnt/file
> %{buildroot}/mnt/file/file
%files
/mnt/file
```
```
Summary: test package
Name: test-replace-directory
Version: 2.0
Release: 1
License: Test
%description
Test package.
%prep
%build
%install
%__mkdir_p %{buildroot}/mnt
> %{buildroot}/mnt/file
%files
/mnt/file
```
--
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/964
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191202/a44e5474/attachment.html>
More information about the Rpm-maint
mailing list