Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #10297

Re: apt.Cache.update with alternative sources.list

Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder.erje.net!2.us.feeder.erje.net!news.unit0.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Paul Wise <pabs@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: apt.Cache.update with alternative sources.list
Date Thu, 22 Mar 2018 15:30:01 +0100
Message-ID <vw9o5-1jW-1@gated-at.bofh.it> (permalink)
References <vvUyK-8di-19@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Mar 22 14:27:34 2018
Old-Return-Path <paul.is.wise@gmail.com>
X-Amavis-Spam-Status No, score=-7.201 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -7
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=lXG19ZXeBzGFPrwxROctmkaxuJHh1TOnVmwbjpeyMTs=; b=oU4Ufh4iX7iJu2WBngvKrSemROhRMfBvRxzwn94rFPs1G0zttFcxiBg02bGpwBs+s8 dNZt/TBFmwNiGRA84UphhAWg4c/HzfvAlmSCWkPbGsrOolLn29lkChp03QvzjXLu+l4o wQdKeiRzEMan12I0KQ9jGHy+Ql9IPnfyhx6IjiDXDE8M6RWyYsmfrjRZ9HWB0/yTfZu8 bY6ozAU3xlAVsBrlHu7yZ45RQUmqqoy1LKoH3CNPV+pDli3zHMaQrMs9vHgItkw1HlJf BHU1t9eu0EUVQdgGJhF9AszscywTIDIseXJmBsE69rg2P5g8JFicgUq+BX4esFYsxYnk iaig==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=lXG19ZXeBzGFPrwxROctmkaxuJHh1TOnVmwbjpeyMTs=; b=juJx/qdXx+hDgOeFicepnr1LJATCm1gkAi2zJGxlfF1bPmRqu3dWVShPDHSp9vLruD BX9TCKu60BupA+pY0ogeyq7M8UsiQmHJIJpzOrgv98SDxhAm8krIU20YoUjgO+cu36Az GDXHejkA72ZTjaMs7egVQZ0TXHdlbzcVI6R5Xp45MLzn0yy37L76M/k1X6YyK2pC0Mor csiVglHq3lqPBXG9HN65xBQzD6UjziO3RFtDMhEpZOKv/XhihkYRWDKhDxB+Vidf+24w WnMMivQJz7STJzVAS2UJ2lEZvNcgp33TZiXcJW4MSJ7aSyUQcMC3mMK1wO0djl9sPcJW 6FFg==
X-Gm-Message-State AElRT7HJLHnFXbCFVouKk9l8HFddSGCaApGeoSENeYZcHYY3HKo6rRHQ jWAsqwnbQ1GpExbEYdj6eLxHWnMfgnzhQtymoDY=
X-Google-SMTP-Source AG47ELvGA+JXMinIBye8Nr2XJWO9cgG4aAMg0BcsdkLD409lv6i8K6kMg11+Ux0jYpM9b9EjjlUYPrpD2xfdqFJaWos=
X-Received by 10.202.82.193 with SMTP id g184mr12736518oib.353.1521728833243; Thu, 22 Mar 2018 07:27:13 -0700 (PDT)
MIME-Version 1.0
Sender robomod@news.nic.it
X-Google-Sender-Auth I5FOMoxbdYf9ShIiVF6DXA41x5E
Content-Type text/plain; charset="UTF-8"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/15696
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/CAKTje6HJkY1KUcdnRXB3aA9W7SZ1Zix_5A77dbCxC_2YxDYYjw@mail.gmail.com
Approved robomod@news.nic.it
Lines 20
Organization linux.* mail to news gateway
X-Original-Date Thu, 22 Mar 2018 22:27:12 +0800
X-Original-Message-ID <CAKTje6HJkY1KUcdnRXB3aA9W7SZ1Zix_5A77dbCxC_2YxDYYjw@mail.gmail.com>
X-Original-References <87605pyt6l.fsf@debian.org>
X-Original-Sender paul.is.wise@gmail.com
Xref csiph.com linux.debian.maint.python:10297

Show key headers only | View raw


On Thu, Mar 22, 2018 at 6:12 AM, Ole Streicher wrote:

> I need some access (as normal user) to an apt cache with an alternative
> sources.list (those in /etc/blends/ installed by blends-dev), but I have
> problems to find out how to use it.

If you want to completely isolate apt from the system configuration
for apt, the correct way to do that is to set the APT_CONFIG
environment variable. See apt.conf(5), APT_CONFIG is the first
mechanism used for setting the apt config and /etc is the second place
apt looks for configuration. If you do not want to override every item
(including hooks/etc) in every file in /etc/apt/apt.conf.d then you
need to use APT_CONFIG. Examples of how to do this include chdist
(from devscripts), apt-venv or the derivatives census codebase.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

apt.Cache.update with alternative sources.list Ole Streicher <olebole@debian.org> - 2018-03-21 23:40 +0100
  Re: apt.Cache.update with alternative sources.list Pierre-Elliott Bécue <becue@crans.org> - 2018-03-22 08:30 +0100
  Re: apt.Cache.update with alternative sources.list Paul Wise <pabs@debian.org> - 2018-03-22 15:30 +0100

csiph-web