Option to not use any update system

This commit is contained in:
Jamie Cameron
2009-01-07 18:11:20 +00:00
parent c92d9634bd
commit 62eeec0797
3 changed files with 8 additions and 2 deletions

View File

@@ -23,3 +23,5 @@ Fixed several bugs related to finding available updates on Debian and Redhat.
Added detection of epochs for RPMs and packages from YUM.
---- Changes since 1.340 ----
Added an Upgrade All button for CSW packages.
---- Changes since 1.440 ----
Added a Module Config option to not use any update system, even if YUM or APT are installed.

View File

@@ -1,3 +1,3 @@
package_system=Package management system,4,rpm-RPM,pkgadd-Solaris,hpux-HPUX,freebsd-FreeBSD,slackware-Slackware,debian-Debian,aix-AIX,emerge-Gentoo,cygwin-Cygwin,msi-Microsoft Installer
update_system=Package update system,1,-Detect automatically,apt-APT,yum-YUM,rhn-Redhat Network,csw-Blastwave,urpmi-URPMI,emerge-Emerge
update_system=Package update system,1,-Detect automatically,apt-APT,yum-YUM,rhn-Redhat Network,csw-Blastwave,urpmi-URPMI,emerge-Emerge,*-None
apt_mode=Command to use for APT installs,1,0-apt-get,1-aptitute

View File

@@ -11,7 +11,11 @@ $heiropen_file = "$module_config_directory/heiropen";
# we are using.
do "$config{package_system}-lib.pl";
if ($config{'update_system'}) {
if ($config{'update_system'} eq '*') {
# User specifically doesn't want any
$update_system = undef;
}
elsif ($config{'update_system'}) {
# User-specified system
$update_system = $config{'update_system'};
}