aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--FAQ8
-rw-r--r--FAQ.html8
-rw-r--r--doc/slapt-get.86
-rw-r--r--po/cs.po7
-rw-r--r--po/de.po7
-rw-r--r--po/el.po7
-rw-r--r--po/en.po7
-rw-r--r--po/es.po7
-rw-r--r--po/es_ES.po7
-rw-r--r--po/fr.po7
-rw-r--r--po/it.po7
-rw-r--r--po/nl.po7
-rw-r--r--po/no.po7
-rw-r--r--po/pl.po7
-rw-r--r--po/pt_BR.po7
-rw-r--r--po/pt_PT.po7
-rw-r--r--po/sk.po7
-rw-r--r--po/sl.po7
-rw-r--r--po/slapt-get.pot3
-rw-r--r--po/sv.po7
-rw-r--r--po/vi.po7
-rw-r--r--src/action.c2
-rw-r--r--src/configuration.c1
-rw-r--r--src/configuration.h1
-rw-r--r--src/main.c5
-rw-r--r--src/main.h1
27 files changed, 123 insertions, 36 deletions
diff --git a/ChangeLog b/ChangeLog
index c41ec2e..9bc2425 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
-0.9.10c Aug 25, 2005
+0.9.10c Aug 27, 2005
+ * added --no-upgrade so that packages (such as the kernel) can be installed
+ side by side with an existing version. This disables the check for --install
+ arguments that automatically selects the package for upgrade.
* added slapt_remove_source to compliment slapt_add_source
* updated withlibslapt make target, and the library naming convention
from libslapt-$(VERSION).so to libslapt.so.$(VERSION)
diff --git a/FAQ b/FAQ
index f01587f..1ba978f 100644
--- a/FAQ
+++ b/FAQ
@@ -51,6 +51,7 @@ Frequently Asked Questions:
48. How can I search the contents of a package for a file or library?
49. Will slapt-get support a --compile like option for slackbuilds?
50. What about mirror fall back / fail-over ?
+51. How do I install a kernel rather than upgrade the existing kernel?
@@ -1105,3 +1106,10 @@ Frequently Asked Questions:
are not available.
+51. How do I install a kernel rather than upgrade the existing kernel?
+
+ When you run --upgrade or --install kernel-ide, slapt-get attempts to install
+ the newest version of kernel-ide (in this example) and upgrade the existing
+ version. To override this, use --install kernel-ide --no-upgrade.
+
+
diff --git a/FAQ.html b/FAQ.html
index d20060f..1a406cf 100644
--- a/FAQ.html
+++ b/FAQ.html
@@ -65,6 +65,7 @@
<a href="#slgFAQ48">48. How can I search the contents of a package for a file or library?</a>
<a href="#slgFAQ49">49. Will slapt-get support a --compile like option for slackbuilds?</a>
<a href="#slgFAQ50">50. What about mirror fall back / fail-over ?</a>
+<a href="#slgFAQ51">51. How do I install a kernel rather than upgrade the existing kernel?</a>
@@ -1119,6 +1120,13 @@
are not available.
+<a href="#slgFAQ51">51. How do I install a kernel rather than upgrade the existing kernel?</a>
+
+ When you run --upgrade or --install kernel-ide, slapt-get attempts to install
+ the newest version of kernel-ide (in this example) and upgrade the existing
+ version. To override this, use --install kernel-ide --no-upgrade.
+
+
</pre>
diff --git a/doc/slapt-get.8 b/doc/slapt-get.8
index f9aa3d2..6f0f0d5 100644
--- a/doc/slapt-get.8
+++ b/doc/slapt-get.8
@@ -59,6 +59,9 @@ slapt-get \- frontend to pkgtools
[
.B --retry []
]
+[
+.B --no-upgrade
+]
.LP
.B targets:
[
@@ -149,6 +152,9 @@ Remove installed packages that are no longer available. This works for dist-upg
.TP
.B --retry []
Specify the number of retries to attempt if the package download fails.
+.TP
+.B --no-upgrade
+Install the package rather than attempting to detect if a previous version is installed and upgrading it. This is useful for installing kernel packages. This option is only valid for --install targets.
.SH TARGETS
.TP
.B --update
diff --git a/po/cs.po b/po/cs.po
index 05897cb..7c2f0be 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Oto Petrik <oto.petrik@centrum.cz>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Nepodailo se analyzovat popisy balk z %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/de.po b/po/de.po
index ba871ae..f4498dd 100644
--- a/po/de.po
+++ b/po/de.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Niklas Volbers <mithrandir42@web.de>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Failed to parse package data from %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/el.po b/po/el.po
index fb147bc..7c98444 100644
--- a/po/el.po
+++ b/po/el.po
@@ -5,9 +5,9 @@
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Savvas Eftratiadis <pigouinos@mailworks.org.\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -470,3 +470,6 @@ msgstr "Failed to parse package data from %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/en.po b/po/en.po
index 4c31cd2..0da16f7 100644
--- a/po/en.po
+++ b/po/en.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Jason Woodward <woodwardj@jaos.org>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Failed to parse package data from %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/es.po b/po/es.po
index a3062b5..630e12f 100644
--- a/po/es.po
+++ b/po/es.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Ruben Gutierrez <ruben@snpp.com.ar>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Failed to parse package data from %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/es_ES.po b/po/es_ES.po
index d421c13..e216887 100644
--- a/po/es_ES.po
+++ b/po/es_ES.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Ruben Gutierrez <ruben@snpp.com.ar>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Failed to parse package data from %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/fr.po b/po/fr.po
index 687b636..05823a2 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Verachten Bruno <gounthar@gmail.com>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Echec de l'analyse des donnes du paquet partir de %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/it.po b/po/it.po
index 166c0b2..8e32ac6 100644
--- a/po/it.po
+++ b/po/it.po
@@ -6,9 +6,9 @@
#,fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Francesco Gigli <jaramir@slack.it>\n"
"Language-Team: Italian <tp@lists.linux.it>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Failed to parse package data from %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/nl.po b/po/nl.po
index 4a95d1e..6da1b54 100644
--- a/po/nl.po
+++ b/po/nl.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Stefan Koopmanschap <stefan@electronicmusicworld.com>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Failed to parse package data from %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/no.po b/po/no.po
index 01b371c..f7c63e7 100644
--- a/po/no.po
+++ b/po/no.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Joran Kvalvaag <jk@nerdworks.org>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Kunne ikke analysere pakkedata fra %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/pl.po b/po/pl.po
index 0e6bcfe..71356ae 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translators: Sajmon <sajmon@tenboard.com>, Paul Blazejowski <paulb@blazebox.homeip.net>, nixon <nixon@klub.chip.pl> and simon <ssiimm@poczta.onet.pl>\n"
"Language-Team: polish slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Nie powioda si analiza danych pakietu z %s\n"
msgid "specify number of download retry attempts"
msgstr "Okrel liczb prb powtrzenia pobrania"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/pt_BR.po b/po/pt_BR.po
index cbd7b5d..6d1562a 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Henrique Pinto <henrique.pinto@kdemail.net>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -470,3 +470,6 @@ msgstr "Failed to parse package data from %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/pt_PT.po b/po/pt_PT.po
index 0911783..f80ce07 100644
--- a/po/pt_PT.po
+++ b/po/pt_PT.po
@@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-19 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Miguel Santinho <msantinho@simplicidade.com>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -470,3 +470,6 @@ msgstr "Falha ao analisar dados do pacote %s\n"
msgid "specify number of download retry attempts"
msgstr "especifique o nmero de tentativas para download"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/sk.po b/po/sk.po
index 66d359a..420ba5a 100644
--- a/po/sk.po
+++ b/po/sk.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2005-06-23 21:28+0500\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Erik Gyepes <depi@depi.sk>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Nepodarilo sa analyzova dta balkov z %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/sl.po b/po/sl.po
index 0fbac0f..69eefd2 100644
--- a/po/sl.po
+++ b/po/sl.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2005-03-09\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Uros Trsavec <utrsav@walla.com>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Failed to parse package data from %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/slapt-get.pot b/po/slapt-get.pot
index 9c4c78e..a291170 100644
--- a/po/slapt-get.pot
+++ b/po/slapt-get.pot
@@ -471,3 +471,6 @@ msgstr ""
msgid "specify number of download retry attempts"
msgstr ""
+msgid "install package, do not attempt to upgrade"
+msgstr ""
+
diff --git a/po/sv.po b/po/sv.po
index 16ae60e..4b4d8ce 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Joel Bjurman <ypolt@lediga.st>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -471,3 +471,6 @@ msgstr "Failed to parse package data from %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/po/vi.po b/po/vi.po
index 4364454..0e65bf6 100644
--- a/po/vi.po
+++ b/po/vi.po
@@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: 0.9.10b\n"
+"Project-Id-Version: 0.9.10c\n"
"POT-Creation-Date: 2003-11-03 14:28+0000\n"
-"PO-Revision-Date: 2005-08-09 11:42+0500\n"
+"PO-Revision-Date: 2005-08-27 01:32+0500\n"
"Last-Translator: Nguyễn Văn Vũ <vncasper@yahoo.com>\n"
"Language-Team: gnome-vi <gnomevi-list@lists.sourceforge.net>\n"
"MIME-Version: 1.0\n"
@@ -472,3 +472,6 @@ msgstr "Bị lỗi khi chuyển đổi gói dữ liệu từ %s\n"
msgid "specify number of download retry attempts"
msgstr "specify number of download retry attempts"
+msgid "install package, do not attempt to upgrade"
+msgstr "install package, do not attempt to upgrade"
+
diff --git a/src/action.c b/src/action.c
index 5ca8df6..6b8146f 100644
--- a/src/action.c
+++ b/src/action.c
@@ -85,7 +85,7 @@ void slapt_pkg_action_install(const slapt_rc_config *global_config,
installed_pkg = slapt_get_newest_pkg(installed_pkgs,pkg->name);
/* if it is not already installed, install it */
- if ( installed_pkg == NULL ) {
+ if ( installed_pkg == NULL || global_config->no_upgrade == SLAPT_TRUE) {
if ( slapt_add_deps_to_trans(global_config,&tran,avail_pkgs,
installed_pkgs,pkg) == 0 ) {
diff --git a/src/configuration.c b/src/configuration.c
index 6627696..534acee 100644
--- a/src/configuration.c
+++ b/src/configuration.c
@@ -45,6 +45,7 @@ slapt_rc_config *slapt_read_rc_config(const char *file_name)
global_config->exclude_list = NULL;
global_config->working_dir[0] = '\0';
global_config->remove_obsolete = SLAPT_FALSE;
+ global_config->no_upgrade = SLAPT_FALSE;
global_config->progress_cb = NULL;
global_config->sources = slapt_malloc(sizeof *global_config->sources );
global_config->sources->url =
diff --git a/src/configuration.h b/src/configuration.h
index 5f24494..ea37e15 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -30,6 +30,7 @@ typedef struct {
SLAPT_BOOL_T print_uris;
SLAPT_BOOL_T dl_stats;
SLAPT_BOOL_T remove_obsolete;
+ SLAPT_BOOL_T no_upgrade;
unsigned int retry;
int(*progress_cb)(void *,double,double,double,double);
diff --git a/src/main.c b/src/main.c
index 776a6ff..117420f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -62,6 +62,7 @@ int main( int argc, char *argv[] )
{"remove-obsolete", 0, 0, SLAPT_OBSOLETE_OPT},
{"available", 0, 0, SLAPT_AVAILABLE_OPT},
{"retry", 1, 0, SLAPT_RETRY_OPT},
+ {"no-upgrade", 0, 0, SLAPT_NO_UPGRADE_OPT},
{0, 0, 0, 0},
};
@@ -184,6 +185,9 @@ int main( int argc, char *argv[] )
case SLAPT_RETRY_OPT: /* set number of retry attempts */
global_config->retry = (atoi(optarg) > 0) ? atoi(optarg) : 1;
break;
+ case SLAPT_NO_UPGRADE_OPT: /* do not attempt to upgrade */
+ global_config->no_upgrade = SLAPT_TRUE;
+ break;
case SLAPT_AUTOCLEAN_OPT: /* clean old old package versions */
do_action = AUTOCLEAN;
break;
@@ -341,6 +345,7 @@ void usage(void)
printf(" --config [] - %s\n",gettext("specify alternate slapt-getrc location"));
printf(" --remove-obsolete - %s\n",gettext("remove obsolete packages (dist-upgrade only)"));
printf(" --retry [] - %s\n",gettext("specify number of download retry attempts"));
+ printf(" --no-upgrade - %s\n",gettext("install package, do not attempt to upgrade"));
}
void version_info(void)
diff --git a/src/main.h b/src/main.h
index e5a59ad..5da934c 100644
--- a/src/main.h
+++ b/src/main.h
@@ -79,6 +79,7 @@ enum slapt_action {
#define SLAPT_OBSOLETE_OPT 'O'
#define SLAPT_AVAILABLE_OPT 'A'
#define SLAPT_RETRY_OPT 'R'
+#define SLAPT_NO_UPGRADE_OPT 'N'
#define SLAPT_DEBUG 0
#define SLAPT_DO_NOT_UNLINK_BAD_FILES 1