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

pym/_emerge/actions.py

index 20868594672883c765b666010396dfeb7c72fed0..9b5931181568c5342d87e6445ab52d4434974418 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.