Added architectures whitelist for Debian repository importer

Only the given architectures are considered.
This reduces the amount of computing required when updating the database from Debian repositories. And it probably limits the packages to those being availble on the more popular desktop architectures like amd64 and i386.
This commit is contained in:
Christoph Haas 2015-04-22 23:03:25 +02:00
parent d888829ce6
commit 4c43e10ab3
2 changed files with 3 additions and 1 deletions

View file

@ -34,10 +34,11 @@ Debshots::Application.configure do
# URL prefix leading to the static images that should get delivered by the web server
config.images_path_prefix = '/screenshots'
# DEB package repositories to parse when running "rake import_debian"
# DEB package repositories to parse when running "rake debshots:... tasks"
config.package_sources = [
{
description: 'Development test files', type: 'apt', url: 'lib/tasks/files/',
architectures: ['i386', 'amd64']
#components: ['main','restricted','universe','multiverse']
}
]

View file

@ -87,6 +87,7 @@ Debshots::Application.configure do
config.package_sources = [
{
description: 'Debian Unstable (Sid)', type: 'apt', url: 'http://ftp.de.debian.org/debian/dists/sid',
architectures: ['i386' ,'amd64']
#components: ['main','restricted','universe','multiverse']
}
]