Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
reposync
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
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
Merge requests
!226
Read the modifyrepo to add in repomd the updateinfo and module info
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Read the modifyrepo to add in repomd the updateinfo and module info
modifyrepo
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Marta Vila Fernandes
requested to merge
modifyrepo
into
master
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
310ef0b4
1 commit,
2 years ago
1 file
+
6
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
reposync/runreposync.sh
+
6
−
8
Options
@@ -162,19 +162,17 @@ EOF
# Keep the current xml.gz file and remove the older one
UPDXMLFILE
=
$(
/bin/ls
-1tr
$REPOPATH
/
*
-updateinfo
.xml.gz 2>&1 | /usr/bin/tail
-1
)
if
[
-f
"
$UPDXMLFILE
"
]
;
then
/bin/cp
-f
$UPDXMLFILE
$REPOPATH
/updateinfo.xml.gz
/bin/gunzip
-f
$REPOPATH
/updateinfo.xml.gz
/usr/bin/modifyrepo
$REPOPATH
/updateinfo.xml
$REPOPATH
/repodata
/usr/bin/find
${
REPOPATH
}
-name
'*updateinfo.xml*'
-not
-name
$UPDXMLFILE
-printf
"removed '%f'
\n
"
-delete
/usr/bin/modifyrepo
$UPDXMLFILE
$REPOPATH
/repodata
NEWUPDXMLFILE
=
$(
sed
'/updateinfo.xml.gz/!d; s/.*repodata\/\(.*\)".*/\1/'
${
REPOPATH
}
/repodata/repomd.xml
)
/usr/bin/find
${
REPOPATH
}
-name
'*updateinfo.xml*'
-not
-name
$NEWUPDXMLFILE
-printf
"removed '%f'
\n
"
-delete
fi
# Keep the current yaml.gz file and remove the older one
MODULEFILE
=
$(
/bin/ls
-1tr
${
REPOPATH
}
/
*
-module
*
yaml.gz 2>&1 | /usr/bin/tail
-1
)
if
[
-f
"
$MODULEFILE
"
]
;
then
/bin/cp
-f
$MODULEFILE
$REPOPATH
/modulefile.yaml.gz
/bin/gunzip
-f
$REPOPATH
/modulefile.yaml.gz
/usr/bin/modifyrepo
--mdtype
=
modules
$REPOPATH
/modulefile.yaml
$REPOPATH
/repodata
/usr/bin/find
${
REPOPATH
}
-name
'*module*.yaml*'
-not
-name
$MODULEFILE
-printf
"removed '%f'
\n
"
-delete
/usr/bin/modifyrepo
--mdtype
=
modules
$MODULEFILE
$REPOPATH
/repodata
NEWMODULEFILE
=
$(
sed
'/yaml.gz/!d; s/.*repodata\/\(.*\)".*/\1/'
${
REPOPATH
}
/repodata/repomd.xml
)
/usr/bin/find
${
REPOPATH
}
-name
'*module*.yaml*'
-not
-name
$NEWMODULEFILE
-printf
"removed '%f'
\n
"
-delete
fi
fi
# end of if [[ $RUN_CREATEREPO -eq 1 ]]
Loading