mirror of
https://tvoygit.ru/Djam/r11-builder-agent.git
synced 2025-02-23 18:32:46 +00:00
Optimize urpmq speed:
1) pass --whatrequires and --sourcerpm in one iteration, remove a nested loop 2) run urpmq with root permissions because it's much faster (https://forum.rosalinux.ru/viewtopic.php?t=8427)
This commit is contained in:
parent
d33c0b2bb6
commit
478dba42ac
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ for rpm in ${OUTPUT_FOLDER}/*.rpm; do
|
|||
release=${nevr[3]}
|
||||
|
||||
dep_list=""
|
||||
[[ ! "${fullname}" =~ ".*src.rpm$" ]] && dep_list=`urpmq --whatrequires ${name} | sort -u | xargs urpmq --sourcerpm | cut -d\ -f2 | rev | cut -f3- -d- | rev | sort -u | grep -v "^${project_name}$" | xargs echo`
|
||||
[[ ! "${fullname}" =~ ".*src.rpm$" ]] && dep_list=`sudo urpmq --whatrequires --sourcerpm "${name}" | cut -d\ -f2 | rev | cut -f3- -d- | rev | sort -u | grep -v "^${project_name}$" | xargs echo`
|
||||
sha1=`sha1sum ${rpm} | awk '{ print $1 }'`
|
||||
|
||||
echo "--> dep_list for '${name}':"
|
||||
|
|
Loading…
Add table
Reference in a new issue