[elbe-devel] [PATCH 6/8] elbepack: db: remove checkout_version_xml()
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Aug 13 09:31:22 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 b7180d4bd258..0ab4263104e5 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -431,26 +431,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