Skip to content

Commit 3ffcc8a

Browse files
committed
fix(many): Fix incorrect directory being checked in the APT cache refresh logic
The /var/cache/apt/archives directory is for the downloaded binary packages, not archive cache/index. Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
1 parent 24dcff4 commit 3ffcc8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

continuous-integration/do-static-analysis.install-system-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fi
6464
if ! apt_archive_cache_mtime_epoch="$(
6565
stat \
6666
--format=%Y \
67-
/var/cache/apt/archives
67+
/var/lib/apt/lists
6868
)"; then
6969
printf \
7070
'Error: Unable to query the APT archive cache directory modification time.\n' \

continuous-integration/generate-build-artifacts.install-system-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fi
5555
apt_archive_cache_mtime_epoch="$(
5656
stat \
5757
--format=%Y \
58-
/var/cache/apt/archives
58+
/var/lib/apt/lists
5959
)"
6060
current_time_epoch="$(
6161
date +%s

dev-assets/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ refresh_debian_local_cache(){
429429
if ! apt_archive_cache_mtime_epoch="$(
430430
stat \
431431
--format=%Y \
432-
/var/cache/apt/archives
432+
/var/lib/apt/lists
433433
)"; then
434434
printf \
435435
'Error: Unable to query the modification time of the APT software sources cache directory.\n' \

0 commit comments

Comments
 (0)