Disable PORTAGE_SYNC_STALE warnings when --usepkgonly is enabled. (trunk r15769)
authorZac Medico <zmedico@gentoo.org>
Mon, 8 Mar 2010 09:10:56 +0000 (09:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 8 Mar 2010 09:10:56 +0000 (09:10 -0000)
svn path=/main/branches/2.1.7/; revision=15770

pym/_emerge/actions.py

index 48e0974b228f6203072cd86526208822063dbdb5..5bbe5e20d1e56eb40dbb0fe9bab082cfca0ea954 100644 (file)
@@ -65,7 +65,8 @@ if sys.hexversion >= 0x3000000:
 def action_build(settings, trees, mtimedb,
        myopts, myaction, myfiles, spinner):
 
-       old_tree_timestamp_warn(settings['PORTDIR'], settings)
+       if '--usepkgonly' not in myopts:
+               old_tree_timestamp_warn(settings['PORTDIR'], settings)
 
        # validate the state of the resume data
        # so that we can make assumptions later.