Set portage._working_copy bool variable.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sat, 13 Jul 2013 09:23:32 +0000 (11:23 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sat, 13 Jul 2013 09:23:32 +0000 (11:23 +0200)
pym/portage/__init__.py

index 85be13e61b516897c7f0c17edb812b6a128aae4f..35bf1520f030d2c106e12ffeeffaa11a4f8ba53b 100644 (file)
@@ -386,6 +386,7 @@ except (ImportError, OSError) as e:
 _python_interpreter = os.path.realpath(sys.executable)
 _bin_path = PORTAGE_BIN_PATH
 _pym_path = PORTAGE_PYM_PATH
+_working_copy = VERSION == "HEAD"
 
 # Api consumers included in portage should set this to True.
 _internal_caller = False