Skip to content

Commit

Permalink
[PackageKit] Point ZYPPTMPDIR to home partition. Fixes JB#62835
Browse files Browse the repository at this point in the history
Move the downloading-cache from /var/tmp to /home/.zypp-tmp
This reduces the root partition free space requirements during download.
This avoids moving the files from root to home partition after download.
The cache location is created at runtime if it doesn't exist.
  • Loading branch information
direc85 committed Nov 14, 2024
1 parent cf5caba commit 169b737
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpm/PackageKit.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Source0: http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{ver
Source100: rpm-db-clean.service
Source101: pk-rpm-db-clean
Source102: packagekit-zypp-override.conf
Source103: packagekit.sysconfig

Requires: PackageKit-zypp = %{version}-%{release}
Requires: shared-mime-info
Expand Down Expand Up @@ -101,6 +102,9 @@ using PackageKit.
# Create cache dir
mkdir -p %{buildroot}%{_localstatedir}/cache/PackageKit

# Environment file for libzypp
install -D -m 0644 %{SOURCE103} %{buildroot}/%{_sysconfdir}/sysconfig/packagekit

# delete unneeded things
rm -r ${RPM_BUILD_ROOT}/%{_datadir}/PackageKit/helpers/test_spawn
rm ${RPM_BUILD_ROOT}/%{_libdir}/packagekit-backend/libpk_backend_test_*.so
Expand Down Expand Up @@ -159,6 +163,7 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
%dir %{_libdir}/packagekit-backend
%config %{_sysconfdir}/PackageKit/*.conf
%config %{_sysconfdir}/dbus-1/system.d/*
%config %{_sysconfdir}/sysconfig/packagekit
%{_datadir}/polkit-1/actions/*.policy
%{_datadir}/polkit-1/rules.d/org.freedesktop.packagekit.rules
# applies only to some desktop distributions
Expand Down
2 changes: 2 additions & 0 deletions rpm/packagekit.sysconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PACKAGEKIT_ARGS="--keep-environment"
ZYPPTMPDIR="/home/.zypp-tmp"

0 comments on commit 169b737

Please sign in to comment.