Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
f83e7870
Commit
f83e7870
authored
Jun 09, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmcs: correct handle + in package names
parent
3b499485
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
rpmcs
bin/rpmcs
+9
-4
No files found.
bin/rpmcs
View file @
f83e7870
...
...
@@ -39,9 +39,14 @@ toalt_pkgrepl()
# For broken rule
echo
$REPLRULE
|
grep
"^|"
>
/dev/null
&&
REPLRULE
=
""
echo
$REPLRULE
|
grep
"|
\$
"
>
/dev/null
&&
REPLRULE
=
""
REPLRULE1
=
`
echo
$REPLRULE
|
cut
-d
"|"
-f1
`
REPLRULE2
=
`
echo
$REPLRULE
|
cut
-d
"|"
-f2
`
test
-n
"
$REPLRULE
"
&&
return
0
if
[
-n
"
$REPLRULE
"
]
;
then
REPLRULE1
=
`
echo
$REPLRULE
|
cut
-d
"|"
-f1
|
sed
-e
"s|
\+
|
\\\\\+
|g"
`
REPLRULE2
=
`
echo
$REPLRULE
|
cut
-d
"|"
-f2
|
sed
-e
"s|
\+
|
\\\\\+
|g"
`
return
0
else
REPLRULE1
=
REPLRULE2
=
fi
done
return
1
}
...
...
@@ -305,7 +310,7 @@ do
ALLREPLRULES
=
""
for
n
in
`
print_buildreq
$i
`
;
do
toalt_pkgrepl
$n
&&
ALLREPLRULES
=
"
$ALLREPLRULES
s|(.*Req.*)
$REPLRULE1
|
\1
$REPLRULE2
|g"
s|(.*Req.*)
$REPLRULE1
|
\1
$REPLRULE2
|g"
&&
test
-n
"
$VERBOSE
"
&&
echo
"Replace '
$REPLRULE1
' with '
$REPLRULE2
'"
#echo REPLRULE: $REPLRULE
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment