mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
mkspec-wrapper.sh: Fix append() for special characters
The append() shell function was unable to cope with special characters, notably with () in RPM provides libnnz12.so()(64bit), this commit fixes that. And introduces some (disabled) debug code into projects.py. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
8d30bbf748
commit
d7da4f1cb8
2 changed files with 3 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ append()
|
|||
{
|
||||
local var=$1
|
||||
shift
|
||||
local tmp=`eval echo \\$$var $@ | sed 's/^[[:space:]]*//; s/[[:space:]]*$//'`
|
||||
local tmp=`eval echo \"\\$$var $@\" | sed 's/^[[:space:]]*//; s/[[:space:]]*$//'`
|
||||
eval $var=\"$tmp\"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -374,6 +374,7 @@ def read_value(path, section, key):
|
|||
r.append(line)
|
||||
else:
|
||||
r = re.findall('^ *' + key + ' *= *(.*)', line)
|
||||
#debug("key " + key + ": parsed line >" + line + "<, result is " + ' '.join(r))
|
||||
if (len(r) > 0):
|
||||
break
|
||||
file.close()
|
||||
|
|
@ -518,7 +519,7 @@ def pkg_relations(rel_type, args_):
|
|||
for i, item in enumerate(dep):
|
||||
dep[i] = item.strip()
|
||||
if s == 'jw' and len(dep) == 3:
|
||||
dep_project = re.sub(r'-devel$|-run$', '', dep[0])
|
||||
dep_project = re.sub(r'-devel$|-dev$|-run$', '', dep[0])
|
||||
if args.dont_expand_version_macros and dep_project in args.module:
|
||||
version = dep[2]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue