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
3da62cf5
Commit
3da62cf5
authored
May 20, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbph: small optimize with out of cycle print_*repl_list
parent
01cea01b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
rpmbph
bin/rpmbph
+4
-2
No files found.
bin/rpmbph
View file @
3da62cf5
...
@@ -131,8 +131,9 @@ if [ -n "$VERBOSE" ] ; then
...
@@ -131,8 +131,9 @@ if [ -n "$VERBOSE" ] ; then
echo
echo
fi
fi
local
pkgrepl_list
=
$(
print_pkgrepl_list
)
for
i
in
$LISTDEP
;
do
for
i
in
$LISTDEP
;
do
tolocal_anyrepl
$i
`
print_pkgrepl_list
`
||
continue
tolocal_anyrepl
$i
$pkgrepl_list
||
continue
#NRL="s!\(.*Req.*\)$REPLRULE1\( |,|\$\)!\1$REPLRULE2\2!g"
#NRL="s!\(.*Req.*\)$REPLRULE1\( |,|\$\)!\1$REPLRULE2\2!g"
NRL
=
"s!(.*Req.*)
$ALTPKGNAME
( |,|
\$
)!
\1
$TARGETPKGNAME
\2
!g"
NRL
=
"s!(.*Req.*)
$ALTPKGNAME
( |,|
\$
)!
\1
$TARGETPKGNAME
\2
!g"
[
-n
"
$VERBOSE
"
]
&&
echo
"Use req rule
$NRL
"
[
-n
"
$VERBOSE
"
]
&&
echo
"Use req rule
$NRL
"
...
@@ -142,8 +143,9 @@ done
...
@@ -142,8 +143,9 @@ done
# Build replacement rules for spec
# Build replacement rules for spec
[
-n
"
$VERBOSE
"
]
&&
echo
"Checking group names for
$LISTGROUP
"
[
-n
"
$VERBOSE
"
]
&&
echo
"Checking group names for
$LISTGROUP
"
ALLGRPREPLRULES
=
""
ALLGRPREPLRULES
=
""
grprepl_list
=
$(
print_grprepl_list
)
for
i
in
$LISTGROUP
;
do
for
i
in
$LISTGROUP
;
do
tolocal_anyrepl
$i
`
print_grprepl_list
`
||
continue
tolocal_anyrepl
$i
$grprepl_list
||
continue
#NRL="s!\(Group.*\)$REPLRULE1\( |,|\$\)!\1$REPLRULE2\2!g"
#NRL="s!\(Group.*\)$REPLRULE1\( |,|\$\)!\1$REPLRULE2\2!g"
NRL
=
"s!(Group.*)
$ALTPKGNAME
( |,|
\$
)!
\1
$TARGETPKGNAME
\2
!g"
NRL
=
"s!(Group.*)
$ALTPKGNAME
( |,|
\$
)!
\1
$TARGETPKGNAME
\2
!g"
[
-n
"
$VERBOSE
"
]
&&
echo
"Use group name rule
$NRL
"
[
-n
"
$VERBOSE
"
]
&&
echo
"Use group name rule
$NRL
"
...
...
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