Name
Cache::Apt::Config - Configuration handler for apt-cross and related tools
Description
Extensively modified portion of NorthernCross using only the Config and Lookup modules and exposing the package details using a dedicated struct.
Copyright and Licence
- •
-
Copyright (C) 2006, 2007 Neil Williams <[email protected]>
- •
-
Copyright (c) 2006, 2007 Alexander Shishkin <[email protected]>
This package is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 3 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.
set_download_mode
Add Apt configuration options to the current configuration to set Apt::Get::Assume-Yes, Apt::Get::Print-URI, Apt::Get::Download-only ready to identify the location of files needing to be downloaded from apt sources.
get_cache_architecture
Reimplemented from dpkg-cross to remove an extra dependency.
check_cache_arch($arch)
Reimplemented from dpkg-cross to remove an extra dependency.
Checks that the supplied $arch is (or can be converted to) a DEB_HOST_GNU_TYPE that is known to dpkg-architecture. Sets the module $arch variable as a side-effect.
returns the DPKG_HOST_GNU_TYPE or undef
set_suite($suite)
Override the &get_suite default to set a specific repository codename that must be supported by all sources in your sources.list.
get_sourceslist ()
Returns the name of the current sources list file.
use_mysources ($sources_file)
Specify that the cache can only use the specified sources.list file instead of collating a complete set of sources from the system apt configuration.
use_hostsources
Remove the override and return to the default system sources.
get_suite
Logic to identify the current suite from apt-cache policy.
This comes from emdebian-tools - migrate to NorthernCross in due course.
get_cache_apt_version
Uses dpkg-query to retrieve the version string for the currently installed libcache-apt-perl package. Falls back to a default version if dpkg-query fails.