Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
reposync
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
linuxsupport
cronjobs
reposync
Commits
ecfe8320
Commit
ecfe8320
authored
2 years ago
by
Marta Vila Fernandes
Browse files
Options
Downloads
Patches
Plain Diff
use only sed
parent
3977fc5b
No related branches found
Branches containing commit
No related tags found
1 merge request
!223
[LOS1012] Stop unzip of the yaml and xml files
Pipeline
#4800678
passed
2 years ago
Stage: prepare
Stage: build
Stage: deploy_test
Stage: deploy
Stage: cleanup
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reposync/runreposync.sh
+2
-2
2 additions, 2 deletions
reposync/runreposync.sh
with
2 additions
and
2 deletions
reposync/runreposync.sh
+
2
−
2
View file @
ecfe8320
...
...
@@ -160,13 +160,13 @@ EOF
/bin/rm
-f
$REPOPATH
/comps.xml
# Keep the current xml.gz file and remove the older one
UPDXMLFILE
=
$(
/bin/grep
updateinfo.xml.gz
${
REPOPATH
}
/repodata/repomd.xml |
sed
's/.*repodata\/\(.*\)".*/\1/'
)
UPDXMLFILE
=
$(
sed
'/
updateinfo.xml.gz
/!d; s/.*repodata\/\(.*\)".*/\1/'
${
REPOPATH
}
/repodata/repomd.xml
)
if
[
-f
"
$UPDXMLFILE
"
]
;
then
/usr/bin/find
${
REPOPATH
}
-name
'*updateinfo.xml*'
-not
-name
$UPDXMLFILE
-delete
fi
# Keep the current yaml.gz file and remove the older one
MODULEFILE
=
$(
/bin/grep module
${
REPOPATH
}
/repodata/repomd.xml |
grep
yaml.gz |
sed
's/.*repodata\/\(.*\)".*/\1/'
)
MODULEFILE
=
$(
sed
'/yaml.gz/!d; s/.*repodata\/\(.*\)".*/\1/'
${
REPOPATH
}
/repodata/repomd.xml
)
if
[
-f
"
$MODULEFILE
"
]
;
then
/usr/bin/find
${
REPOPATH
}
-name
'*module*.yaml*'
-not
-name
$MODULEFILE
-delete
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment