SHA256
1
0
forked from pool/cloud-init

Accepting request 1130364 from home:mvyskocil:branches:Cloud:Tools

- Move fdupes call back to %install

It looked as an error during an update and it makes a little sense to deduplicate the package in %post. Moved (back) to %install.

The existing package is not installable on my MicroOS system, so failing the transactional-update.
```
(50/54) Installing: cloud-init-23.3-1.1.aarch64 [.......
/var/tmp/rpm-tmp.MzH9hQ: line 4: /usr/lib/rpm/fdupes_wrapper: No such file or directory
warning: %post(cloud-init-23.3-1.1.aarch64) scriptlet failed, exit status 127
.done]
```

OBS-URL: https://build.opensuse.org/request/show/1130364
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=218
This commit is contained in:
Robert Schweikert 2023-12-04 22:36:59 +00:00 committed by Git OBS Bridge
parent 189bd13cf0
commit a2411d9328
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Dec 1 23:16:08 UTC 2023 - Michal Vyskocil <michal.vyskocil@gmail.com>
- Move fdupes call back to %install
-------------------------------------------------------------------
Mon Oct 9 14:26:40 UTC 2023 - Robert Schweikert <rjschwei@suse.com>

View File

@ -203,14 +203,14 @@ rm %{buildroot}/%{_sysconfdir}/cloud/templates/*.debian.*
rm %{buildroot}/%{_sysconfdir}/cloud/templates/*.redhat.*
rm %{buildroot}/%{_sysconfdir}/cloud/templates/*.ubuntu.*
%post
/usr/sbin/hidesensitivedata
# remove duplicate files
%if 0%{?suse_version}
%fdupes %{buildroot}%{python3_sitelib}
%endif
%post
/usr/sbin/hidesensitivedata
%files
%defattr(-,root,root)
%license LICENSE LICENSE-GPLv3