From 4c43e10ab3ddf12d8bac5483c191ade5afdda0f7 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Wed, 22 Apr 2015 23:03:25 +0200 Subject: [PATCH] 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. --- config/environments/development.rb | 3 ++- config/environments/production.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index b39331a..ced472c 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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'] } ] diff --git a/config/environments/production.rb b/config/environments/production.rb index 0bdc398..1743d4f 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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'] } ]