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
93231d07
Commit
93231d07
authored
6 years ago
by
Alex Iribarren
Browse files
Options
Downloads
Patches
Plain Diff
Identify GPG validation errors
parent
07ab86af
No related branches found
Branches containing commit
No related tags found
1 merge request
!8
Verify GPG keys and add a bunch of repos
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
reposync/Dockerfile
+5
-1
5 additions, 1 deletion
reposync/Dockerfile
reposync/reposync.patch
+11
-0
11 additions, 0 deletions
reposync/reposync.patch
reposync/runreposync.sh
+7
-1
7 additions, 1 deletion
reposync/runreposync.sh
with
23 additions
and
2 deletions
reposync/Dockerfile
+
5
−
1
View file @
93231d07
FROM
cern/cc7-base
RUN
yum
install
-y
jq createrepo
\
RUN
yum
install
-y
jq createrepo
patch
\
&&
yum clean all
RUN
rm
-rf
/etc/yum.repos.d/
*
...
...
@@ -8,6 +8,10 @@ COPY gpgkeys/ /etc/pki/rpm-gpg/
RUN
find /etc/pki/rpm-gpg/
-type
f
-exec
rpm
--import
{}
\;
COPY
runreposync.sh /root/
# Temporary hack, hopefully
COPY
reposync.patch /root/
RUN
patch /usr/bin/reposync /root/reposync.patch
VOLUME
/repo
WORKDIR
/root
...
...
This diff is collapsed.
Click to expand it.
reposync/reposync.patch
0 → 100644
+
11
−
0
View file @
93231d07
--- reposync 2018-10-10 14:02:54.070891179 +0200
+++ reposync.new 2018-10-10 14:03:24.692535073 +0200
@@ -363,7 +363,7 @@
else:
my.logger.warning('Removing %s due to failed signature check: %s' % rpmfn)
os.unlink(pkg.localpath)
- exit_code = 1
+ exit_code = 2
continue
my.closeRpmDB()
This diff is collapsed.
Click to expand it.
reposync/runreposync.sh
+
7
−
1
View file @
93231d07
...
...
@@ -74,7 +74,13 @@ if [[ $RUN_REPOSYNC -eq 1 ]]; then
--repoid
${
REPOID
}
2> /local/stderr
RET
=
$?
if
[[
$RET
-ne
0
]]
;
then
if
[[
$RET
-eq
2
]]
;
then
cat
<<
EOF
| error | tee
$OUTPUT
"exit_code":
$RET
,
"error": "reposync gpg error",
"output": "
$(
sed
's/"/\\"/g'
/local/stderr
)
"
EOF
elif
[[
$RET
-ne
0
]]
;
then
cat
<<
EOF
| error | tee
$OUTPUT
"exit_code":
$RET
,
"error": "reposync failed",
...
...
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