Index: src/main.cc =================================================================== --- src/main.cc (revision 260) +++ src/main.cc (working copy) @@ -871,6 +871,9 @@ if(!Configuration::getObject().getOption("no-user-interaction").given()) emBaseArg += "a"; + if(Configuration::getObject().getOption("fetchonly").given()) + emBaseArg += "f"; + string emArg(emBaseArg); for(VI vi(alreadyInstalled.begin()); vi != alreadyInstalled.end(); ++vi) emArg += " " + vi->toString(); Index: src/configuration.cc =================================================================== --- src/configuration.cc (revision 260) +++ src/configuration.cc (working copy) @@ -94,6 +94,7 @@ Configuration::_m_withUse, Configuration::_m_withCflags, Configuration::_m_noMerge, + Configuration::_m_fetchOnly, Configuration::_m_noTests, Configuration::_m_notImplemented, Configuration::_m_pkgManagerRelated, @@ -192,6 +193,7 @@ &_m_withUse, &_m_withCflags, &_m_noMerge, + &_m_fetchOnly, &_m_scriptFrom, &_m_templateScriptPath, &_m_scriptDestPath, @@ -204,7 +206,7 @@ _m_action = (_m_work | _m_giveMe | _m_resolve | _m_drop | _m_clean | _m_help | _m_version | _m_useDesc | _m_stat); _m_behavior = (_m_pretend | _m_verbose | _m_quiet | _m_noInteraction); - _m_pkgManagerRelated = (_m_withUse | _m_withCflags | _m_noTests | _m_noMerge); + _m_pkgManagerRelated = (_m_withUse | _m_withCflags | _m_noTests | _m_noMerge | _m_fetchOnly); _m_notImplemented = (_m_pretend| _m_withCflags | _m_withUse); _m_configFile = (_m_scriptDestPath | _m_templateScriptPath); _m_misc = _m_scriptFrom; @@ -336,6 +338,13 @@ _m_help, 'I')); + _optDescriptionVec.push_back(OptDesctiption( + _m_fetchOnly, + "fetchonly", + "only fetches source for targets -- does not build them", + _m_help, + 'f')); + ///////////////////////////////////////////// //Package manager related options _optDescriptionVec.push_back(OptDesctiption( Index: src/configuration.h =================================================================== --- src/configuration.h (revision 260) +++ src/configuration.h (working copy) @@ -190,6 +190,7 @@ _m_withCflags, _m_noTests, _m_noMerge, + _m_fetchOnly, _m_notImplemented, _m_pkgManagerRelated, _m_scriptFrom, Index: doc/gatt.1 =================================================================== --- doc/gatt.1 (revision 260) +++ doc/gatt.1 (working copy) @@ -70,6 +70,10 @@ .TP \fB\-\-no\-merge\fR prevents gatt from installing/uninstalling packages +.TP +\fB\-\-fetchonly\fR +only fetches sources for the packages and does not +build them .SS "Miscelanious:" .TP \fB\-\-script\-from\fR arg