[elbe-devel] [PATCH 6/8] elbepack: db: remove checkout_version_xml()
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Wed Aug 14 11:26:32 CEST 2024
It is not used anymore.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/db.py | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/elbepack/db.py b/elbepack/db.py
index ab913868db81..9217b4e4ad2c 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -430,26 +430,6 @@ class ElbeDB:
return int(p.owner_id)
- def checkout_version_xml(self, builddir, version):
- with session_scope(self.session) as s:
- try:
- v = s.query(ProjectVersion).\
- filter(ProjectVersion.builddir == builddir).\
- filter(ProjectVersion.version == version).one()
- except NoResultFound:
- raise ElbeDBError(
- f'no such project version: {builddir} (version {version})')
-
- assert v.project.status == 'busy'
-
- sourcexmlpath = os.path.join(builddir, 'source.xml')
- versionxmlname = get_versioned_filename(v.project.name, version,
- '.version.xml')
- versionxmlpath = os.path.join(builddir, versionxmlname)
-
- copyfile(versionxmlpath, sourcexmlpath)
- v.project.version = version
-
def get_version_xml(self, builddir, version):
with session_scope(self.session) as s:
try:
--
2.46.0
More information about the elbe-devel
mailing list