[yocto] [auh][PATCH 03/20] upgradehelper.py: do not manipulate git branches.
Alexander Kanavin
alexander.kanavin at linux.intel.com
Thu Dec 14 08:35:43 PST 2017
From: Alexander Kanavin <alex.kanavin at gmail.com>
Let's just write the commits into the current branch, and leave
branch management to some other tool.
Signed-off-by: Alexander Kanavin <alex.kanavin at gmail.com>
---
upgradehelper.py | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/upgradehelper.py b/upgradehelper.py
index 651345b..5fb65cd 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -695,30 +695,6 @@ class UniverseUpdater(Updater):
return recipes
- def _update_master(self):
- if self.opts['layer_mode'] == 'yes':
- I(" Sync poky master ...")
- self.poky_git.reset_hard()
- self.poky_git.clean_untracked()
- self.poky_git.checkout_branch("master")
- self.poky_git.pull()
-
- I(" Drop all uncommited changes (including untracked) ...")
- self.git.reset_hard()
- self.git.clean_untracked()
-
- self.git.checkout_branch("master")
- try:
- self.git.delete_branch("upgrades")
- except Error:
- pass
- if self.opts['layer_mode'] == 'yes':
- I(" Sync %s master ..." % self.opts['layer_name'])
- else:
- I(" Sync poky master ...")
- self.git.pull()
- self.git.create_branch("upgrades")
-
def _prepare(self):
if settings.get("clean_sstate", "no") == "yes" and \
os.path.exists(os.path.join(get_build_dir(), "sstate-cache")):
@@ -857,7 +833,6 @@ class UniverseUpdater(Updater):
self._get_status_msg(pkg_ctx['error']))
def run(self):
- self._update_master()
self._prepare()
super(UniverseUpdater, self).run()
--
2.15.0
More information about the yocto
mailing list