Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[dist] replace project name with target prj name when obs_project_upd…

…ate copies packages
  • Loading branch information...
commit fdcd6a01438cec610a9c7dcc12b0260ec0306d25 1 parent f320648
@mmohring mmohring authored adrianschroeter committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 dist/obs_project_update
View
6 dist/obs_project_update
@@ -71,9 +71,9 @@ for f in $prjlist
do
# Copy pkg meta info before checking out target package
(set -x &&
- (osc -A $sourceobs meta pkg $sourceprj/$f | grep -v "<person " | grep -v "<devel project" | grep -v "<devel package" | grep -v "<group groupid" | osc -A $targetobs meta pkg -F - $targetprj/$f) ||
- (osc -A $sourceobs meta pkg $sourceprj/$f | grep -v "<person " | grep -v "<devel project" | grep -v "<devel package" | grep -v "<group groupid" |osc -A $targetobs meta pkg -F - $targetprj/$f) ||
- (osc -A $sourceobs meta pkg $sourceprj/$f | grep -v "<person " | grep -v "<devel project" | grep -v "<devel package" | grep -v "<group groupid" | osc -A $targetobs meta pkg -F - $targetprj/$f)
+ (osc -A $sourceobs meta pkg $sourceprj/$f | grep -v "<person " | grep -v "<devel project" | grep -v "<devel package" | grep -v "<group groupid" | sed -e "s/<package project=\"$sourceprj\"/<package project=\"$targetprj\"/g" | osc -A $targetobs meta pkg -F - $targetprj/$f) ||
+ (osc -A $sourceobs meta pkg $sourceprj/$f | grep -v "<person " | grep -v "<devel project" | grep -v "<devel package" | grep -v "<group groupid" | sed -e "s/<package project=\"$sourceprj\"/<package project=\"$targetprj\"/g" | osc -A $targetobs meta pkg -F - $targetprj/$f) ||
+ (osc -A $sourceobs meta pkg $sourceprj/$f | grep -v "<person " | grep -v "<devel project" | grep -v "<devel package" | grep -v "<group groupid" | sed -e "s/<package project=\"$sourceprj\"/<package project=\"$targetprj\"/g" | osc -A $targetobs meta pkg -F - $targetprj/$f)
)
# Check out target packages
(set -x &&

0 comments on commit fdcd6a0

Please sign in to comment.
Something went wrong with that request. Please try again.