bzip2 import fixed

This commit is contained in:
Christoph Haas 2024-07-14 22:42:34 +02:00
parent 1095ae3aa5
commit 48e3a8c67f
6 changed files with 114 additions and 75 deletions

View file

@ -1,4 +1,3 @@
require 'open-uri' # allows to load URLs using open()
require 'deb_importer'
# The repository format is documented at:
@ -15,7 +14,7 @@ BLACKLIST_NAME_PATTERN=[
/-dbg$/,
/-common$/,
/-l10n($|-)/,
/-locale-/,
/-locale-/
]
# List of regular expressions. If the package's section matches
@ -23,13 +22,13 @@ BLACKLIST_NAME_PATTERN=[
# /?...$ is used because Ubuntu adds their own section - e.g. multiverse/debug
BLACKLIST_SECTION_PATTERN = [
/^debian-installer$/,
/\/?translations$/,
/\/?debug$/,
/\/?kernel$/,
/\/?localization$/,
/\/?oldlibs$/,
/\/?libdevel$/,
/\/?cli-mono$/,
%r{/?translations$},
%r{/?debug$},
%r{/?kernel$},
%r{/?localization$},
%r{/?oldlibs$},
%r{/?libdevel$},
%r{/?cli-mono$},
]
# Whether to delete a blacklisted package from the database
@ -46,8 +45,8 @@ namespace :debshots do
repositories = Rails.configuration.package_sources
Rails.logger = Logger.new(STDOUT)
Rails.logger.level = Logger::INFO
#Rails.logger.level = Logger::DEBUG
# Rails.logger.level = Logger::INFO
Rails.logger.level = Logger::DEBUG
Rails.logger.info "Importing Debian package information"