aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/autobuilder/buildsteps/PrepPkgIndex.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/site-packages/autobuilder/buildsteps/PrepPkgIndex.py')
-rw-r--r--lib/python2.7/site-packages/autobuilder/buildsteps/PrepPkgIndex.py48
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/PrepPkgIndex.py b/lib/python2.7/site-packages/autobuilder/buildsteps/PrepPkgIndex.py
deleted file mode 100644
index adfef378..00000000
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/PrepPkgIndex.py
+++ /dev/null
@@ -1,48 +0,0 @@
-'''
-Created on Dec 26, 2012
-
-__author__ = "Elizabeth 'pidge' Flanagan"
-__copyright__ = "Copyright 2013, Intel Corp."
-__credits__ = ["Elizabeth Flanagan"]
-__license__ = "GPL"
-__version__ = "2.0"
-__maintainer__ = "Elizabeth Flanagan"
-__email__ = "pidge@toganlabs.com"
-'''
-
-from buildbot.steps.shell import ShellCommand
-from twisted.python import log
-from autobuilder.config import *
-
-class PrepPkgIndex(ShellCommand):
- haltOnFailure = False
- flunkOnFailure = True
- name = "PrepPkgIndex"
- def __init__(self, factory, argdict=None, **kwargs):
- for k, v in argdict.iteritems():
- setattr(self, k, v)
- self.description = "Prepping to create pkg index"
- # Timeout needs to be passed to LoggingBuildStep as a kwarg
- for k, v in argdict.iteritems():
- setattr(self, k, v)
- self.timeout = 100000
- self.workdir="build/build/tmp/deploy/"
- kwargs['workdir']=self.workdir
- kwargs['timeout']=self.timeout
- ShellCommand.__init__(self, **kwargs)
-
- def start(self):
- import os
- DEST=self.getProperty('DEST')
- layerversion = int(self.getProperty("layerversion_core", "0"))
- IPK_PUBLISH_DIR = os.environ.get("IPK_PUBLISH_DIR")
- if layerversion < 4:
- command = "rm -rf ipk; cp -R " + DEST + "/" + IPK_PUBLISH_DIR + " ipk;"
- else:
- command = "rm -rf ipk; ln -s " + DEST + "/" + IPK_PUBLISH_DIR + " ipk;"
- self.command = command
- ShellCommand.start(self)
-
- def describe(self, done=False):
- description = ShellCommand.describe(self,done)
- return description