ALT Linux Bugzilla
– Attachment 873 Details for
Bug 6815
Опции коммандной строки не перекрывают опции конфигурационного файла
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
apt-0.5.15cnc6-cmdline-override-config-options.patch
apt-0.5.15cnc6-cmdline-override-config-options.patch (text/plain), 3.50 KB, created by
Sergey V Turchin
on 2005-05-11 17:21:29 MSD
(
hide
)
Description:
apt-0.5.15cnc6-cmdline-override-config-options.patch
Filename:
MIME Type:
Creator:
Sergey V Turchin
Created:
2005-05-11 17:21:29 MSD
Size:
3.50 KB
patch
obsolete
>diff -u'Nrpk~' apt-0.5.15cnc6~/cmdline/apt-cache.cc apt-0.5.15cnc6/cmdline/apt-cache.cc >--- apt-0.5.15cnc6~/cmdline/apt-cache.cc 2005-05-11 16:40:53 +0400 >+++ apt-0.5.15cnc6/cmdline/apt-cache.cc 2005-05-11 16:53:52 +0400 >@@ -1958,9 +1958,9 @@ int main(int argc,const char *argv[]) > > // Parse the command line and initialize the package library > CommandLine CmdL(Args,_config); >- if (CmdL.Parse(argc,argv) == false || >- pkgInitConfig(*_config) == false || >- pkgInitSystem(*_config,_system) == false) >+ if (pkgInitConfig(*_config) == false || >+ pkgInitSystem(*_config,_system) == false || >+ CmdL.Parse(argc,argv) == false) > { > _error->DumpErrors(); > return 100; >diff -u'Nrpk~' apt-0.5.15cnc6~/cmdline/apt-cdrom.cc apt-0.5.15cnc6/cmdline/apt-cdrom.cc >--- apt-0.5.15cnc6~/cmdline/apt-cdrom.cc 2005-05-11 16:40:53 +0400 >+++ apt-0.5.15cnc6/cmdline/apt-cdrom.cc 2005-05-11 16:46:30 +0400 >@@ -901,9 +901,9 @@ int main(int argc,const char *argv[]) > > // Parse the command line and initialize the package library > CommandLine CmdL(Args,_config); >- if (CmdL.Parse(argc,argv) == false || >- pkgInitConfig(*_config) == false || >- pkgInitSystem(*_config,_system) == false) >+ if (pkgInitConfig(*_config) == false || >+ pkgInitSystem(*_config,_system) == false || >+ CmdL.Parse(argc,argv) == false) > { > _error->DumpErrors(); > return 100; >diff -u'Nrpk~' apt-0.5.15cnc6~/cmdline/apt-config.cc apt-0.5.15cnc6/cmdline/apt-config.cc >--- apt-0.5.15cnc6~/cmdline/apt-config.cc 2005-05-11 16:40:53 +0400 >+++ apt-0.5.15cnc6/cmdline/apt-config.cc 2005-05-11 16:42:34 +0400 >@@ -109,9 +109,9 @@ int main(int argc,const char *argv[]) > > // Parse the command line and initialize the package library > CommandLine CmdL(Args,_config); >- if (CmdL.Parse(argc,argv) == false || >- pkgInitConfig(*_config) == false || >- pkgInitSystem(*_config,_system) == false) >+ if (pkgInitConfig(*_config) == false || >+ pkgInitSystem(*_config,_system) == false || >+ CmdL.Parse(argc,argv) == false) > { > _error->DumpErrors(); > return 100; >diff -u'Nrpk~' apt-0.5.15cnc6~/cmdline/apt-get.cc apt-0.5.15cnc6/cmdline/apt-get.cc >--- apt-0.5.15cnc6~/cmdline/apt-get.cc 2005-05-11 16:40:53 +0400 >+++ apt-0.5.15cnc6/cmdline/apt-get.cc 2005-05-11 16:42:51 +0400 >@@ -3177,9 +3177,9 @@ int main(int argc,const char *argv[]) > > // Parse the command line and initialize the package library > CommandLine CmdL(Args,_config); >- if (CmdL.Parse(argc,argv) == false || >- pkgInitConfig(*_config) == false || >- pkgInitSystem(*_config,_system) == false) >+ if (pkgInitConfig(*_config) == false || >+ pkgInitSystem(*_config,_system) == false || >+ CmdL.Parse(argc,argv) == false) > { > if (_config->FindB("version") == true) > ShowHelp(CmdL); >diff -u'Nrpk~' apt-0.5.15cnc6~/cmdline/apt-shell.cc apt-0.5.15cnc6/cmdline/apt-shell.cc >--- apt-0.5.15cnc6~/cmdline/apt-shell.cc 2005-05-11 16:40:53 +0400 >+++ apt-0.5.15cnc6/cmdline/apt-shell.cc 2005-05-11 16:44:53 +0400 >@@ -4544,9 +4544,9 @@ int main(int argc,const char *argv[]) > > // Parse the command line and initialize the package library > CommandLine CmdL(CommandArgs(""),_config); >- if (CmdL.Parse(argc,argv) == false || >- pkgInitConfig(*_config) == false || >- pkgInitSystem(*_config,_system) == false) >+ if (pkgInitConfig(*_config) == false || >+ pkgInitSystem(*_config,_system) == false || >+ CmdL.Parse(argc,argv) == false) > { > if (_config->FindB("version") == true) > ShowHelp(CmdL);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 6815
: 873