Skip to content
This repository
Browse code

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

…ate copies packages
  • Loading branch information...
commit fdcd6a01438cec610a9c7dcc12b0260ec0306d25 1 parent f320648
Martin Mohring authored February 28, 2012 adrianschroeter committed April 03, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  dist/obs_project_update
6  dist/obs_project_update
@@ -71,9 +71,9 @@ for f in $prjlist
71 71
 do
72 72
 # Copy pkg meta info before checking out target package
73 73
 (set -x && 
74  
-    (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) ||
75  
-    (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) ||
76  
-    (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)
  74
+    (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) ||
  75
+    (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) ||
  76
+    (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)
77 77
 )
78 78
 # Check out target packages
79 79
 (set -x && 

0 notes on commit fdcd6a0

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