From 779babc3b2032b402c8da45e228eec35e4f20c87 Mon Sep 17 00:00:00 2001 From: Mandeep Singh Baines Date: Fri, 21 Jan 2011 10:50:12 -0800 Subject: [PATCH] cros_mark_as_stable: remove old kernel hack This is no longer needed due to recent cleanup of the ebuild: http://git.chromium.org/gitweb/?p=chromiumos-overlay.git;a=commit;h=2c58ec2cabfbd2658cc48b2c0cf74e6b5759b483 BUG=11124 TEST=See below. $ export CROS_WORKON_LOCALNAME="kernel" CROS_WORKON_PROJECT="kernel" eval $(grep -E ^"^CROS_WORKON" kernel-9999.ebuild) && echo $CROS_WORKON_PROJECT $CROS_WORKON_LOCALNAME/$CROS_WORKON_SUBDIR kernel "../third_party/kernel/files"/ Change-Id: Ib9b0d89b41753b490a9f1e73095ad106beefffa6 Review URL: http://codereview.chromium.org/6328005 --- cros_mark_as_stable.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cros_mark_as_stable.py b/cros_mark_as_stable.py index 013ccd1ca9..8fa635e467 100755 --- a/cros_mark_as_stable.py +++ b/cros_mark_as_stable.py @@ -361,12 +361,6 @@ class EBuild(object): dir = 'third_party' srcdir = os.path.join(srcroot, dir, subdir) - # TODO(anush): This hack is only necessary because the kernel ebuild has - # 'if' statements, so we can't grab the CROS_WORKON_LOCALNAME properly. - # We should clean up the kernel ebuild and remove this hack. - if not os.path.isdir(srcdir) and subdir == 'kernel/': - srcdir = os.path.join(srcroot, 'third_party/kernel/files') - if not os.path.isdir(srcdir): Die('Cannot find commit id for %s' % self.ebuild_path)