Skip to content

Commit 841fd0f

Browse files
committed
Workaround if pkgcache.bin does not exist
1 parent 55eee3e commit 841fd0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/update_had_no_effect.sh.epp

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ apt-config shell CUR DIR::Cache::pkgcache >"$EVAL" && . "$EVAL"
1313
[ "$CUR" ] || CUR=pkgcache.bin
1414
OLD="$(mktemp)" || OLD="/${DIR}/${CUR}.old"
1515
rm -f "$EVAL"
16+
[ -e "$CUR" ] || touch "$CUR"
1617
ln -f "$CUR" "$OLD"
1718
TRIES=<%= $tries %>
1819
while true; do

0 commit comments

Comments
 (0)