Properly handle fake packages in commands/files.rb (#9769)

This commit is contained in:
Maximilian Downey Twiss
2024-05-09 09:10:26 +10:00
committed by GitHub
parent 1efb8808b6
commit fe3eba4fd4
2 changed files with 7 additions and 1 deletions

View File

@@ -10,6 +10,12 @@ class Command
return
end
# Fake packages do not have any files.
if pkg.is_fake?
puts "Package #{pkg.name} is fake and has no files.".lightred
return
end
# We can't do anything if we don't have the filelist.
unless File.file?(filelist_path = File.join(CREW_META_PATH, "#{pkg.name}.filelist"))
puts "Package #{pkg.name} does not have a filelist :(".lightred

View File

@@ -2,7 +2,7 @@
# Defines common constants used in different parts of crew
require 'etc'
CREW_VERSION = '1.47.9'
CREW_VERSION = '1.48.0'
# kernel architecture
KERN_ARCH = Etc.uname[:machine]