Removes comments and refs

This commit is contained in:
torsten committed 2026-07-18 13:06:31 +02:00
1 parent d6584b3519
commit 6bb80ee9c8
12 files changed
+215 -215

No files matched your search

+11 -11
View File
@@ -1,29 +1,29 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# $Id: make_rpm_extfw.py 1344 2017-11-16 14:55:23Z ehrlicher $
# $HeadURL: svn://192.168.133.21/admin/rpmbuild/make_rpm_extfw.py $
# $Author: ehrlicher $
# Created by Christian Ehrlicher, SLSE, 20013-12-06
#
import platform
import getopt
import os
import sys
# helper functions
loc = os.path.dirname( sys.argv[0] )
loc = os.path.abspath( loc )
execfile(os.path.join( loc, 'helpers.py') )
def copy_spec( src_filepath, dest_path, version_str, version_rev, project ):
# copy spec to build
f = open( src_filepath, 'r' )
content = f.read()
f.close()
# Jenkins Build Tag (wird von Jenkins gesetzt wenn darüber gebaut wird)
jenkins_build_tag = os.getenv( "BUILD_TAG" )
if jenkins_build_tag == None or len(jenkins_build_tag) == 0:
jenkins_build_tag = 'Not build with jenkins job'
@@ -95,7 +95,7 @@ def main():
usage()
die("Output directory not given" )
# Annahme: spec-File liegt in TDS-source/spec, wir wollen TDS-Source
rpmbase_dir = "/usr/src/packages/"
try:
ver=platform.dist()[1].split('.')[0]
@@ -137,7 +137,7 @@ def main():
exec_rpmbuild( specdir, os.path.split( spec_file )[1], extfw_builddir_base )
removeDirectory( extfw_builddir_base )
# move rpms to FOO-1.2-345
dstdir = os.path.join( output_dir, "%s-%s-%s" % ( project_name, repository, full_version ) )
filter = re.compile( "^.*%s\..*\.rpm$" % full_version )
moved_files = moveFilesToDir( rpmbase_dir,