Skip to content

Commit b47534c

Browse files
committed
PKGUPGRADE_CLEANUP var to prevent cleanup fof apt cache
so on rebuild, we do not have to download all the packages Closes: umlaeute#3
1 parent cff93ac commit b47534c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/modules/pkgupgrade/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
[ -n "$PKGUPGRADE_USE_PREINSTALLER" ] || PKGUPGRADE_USE_PREINSTALLER=n # y/n
55
# Add Packages that should be PKGUPGRADEed.
66
[ -n "$PKGUPGRADE_PRE_INSTALL_PKGS" ] || PKGUPGRADE_PRE_INSTALL_PKGS=""
7+
# Cleanup apt-cache on exit
8+
[ -n "$PKGUPGRADE_CLEANUP" ] || PKGUPGRADE_CLEANUP="y"

src/modules/pkgupgrade/end_chroot_script

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
########
77

88
### Cleanup
9-
apt clean -y
10-
apt autoclean -y
9+
if [ "${PKGUPGRADE_CLEANUP}" = "y" ]; then
10+
apt clean -y
11+
apt autoclean -y
12+
fi
1113

0 commit comments

Comments
 (0)