summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-10 16:20:02 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-07-18 16:15:54 +0300
commit501b97f5ce846351f1968c5c019951094a884156 (patch)
tree456c248e49a9aef002fe85d8bf12f3f3134d8bbc
parent879c4d847473a25f24212f15062bbedbf9fd931e (diff)
downloadgit-buildpackage-501b97f5ce846351f1968c5c019951094a884156.tar.gz
git-buildpackage-501b97f5ce846351f1968c5c019951094a884156.tar.bz2
git-buildpackage-501b97f5ce846351f1968c5c019951094a884156.zip
rpm tests: remove RepoManifest.add_project()
This functionality is moved to the rpm testdata submodule. Change-Id: I0824dbabe84fa75e1053c2508cc86d894dc295e6 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r--tests/component/rpm/__init__.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/component/rpm/__init__.py b/tests/component/rpm/__init__.py
index 607aec49..b5be3e7e 100644
--- a/tests/component/rpm/__init__.py
+++ b/tests/component/rpm/__init__.py
@@ -39,17 +39,6 @@ class RepoManifest(object):
else:
self._doc.appendChild(self._doc.createElement("gbp-test-manifest"))
- def add_project(self, name, branches):
- """Add new project to the manifest"""
- prj_e = self._doc.createElement('project')
- prj_e.setAttribute('name', name)
- for branch, revision in branches.iteritems():
- br_e = self._doc.createElement('branch')
- br_e.setAttribute('name', branch)
- br_e.setAttribute('revision', revision)
- prj_e.appendChild(br_e)
- self._doc.firstChild.appendChild(prj_e)
-
def projects_iter(self):
"""Return an iterator over projects"""
for prj_e in self._doc.getElementsByTagName('project'):