Skip to content

Commit

Permalink
change test, because .bin files do not exists at all time
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Feb 20, 2024
1 parent 0eff542 commit 73e1cbd
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 @@ -169,7 +169,7 @@ foreach my $entry (@preloadlist,@preloadrmlist) {
}
}

-f "$FAI_ROOT/var/cache/apt/pkgcache.bin" && create_debian_pkg_list();
-f "$FAI_ROOT/usr/sbin/apt-cache" && create_debian_pkg_list();

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

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

0 comments on commit 73e1cbd

Please sign in to comment.