Skip to content

Commit

Permalink
check for apt cache file, not for a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed May 15, 2021
1 parent 6b34779 commit d11fae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/install_packages
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ foreach my $entry (@preloadlist,@preloadrmlist) {
}
}

-d "$FAI_ROOT/var/lib/apt/lists" && create_debian_pkg_list();
-f "$FAI_ROOT/var/cache/apt/pkgcache.bin" && create_debian_pkg_list();

# - - - - - - - - - - - - - - - - - - - - - - - - - - -
# begin of the big foreach loop
Expand Down Expand Up @@ -362,7 +362,7 @@ sub mkpackagelist {
# @known contains the known packages

# on Debian system, clean list of packages
if ( ! $opt_N && -d "$FAI_ROOT/var/lib/apt/lists" ) {
if ( ! $opt_N && -f "$FAI_ROOT/var/cache/apt/pkgcache.bin" ) {
@known = clean_pkg_list(@complete);
} else {
@known = @complete;
Expand Down

0 comments on commit d11fae1

Please sign in to comment.