Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
A
apt-canary
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
debdistutils
apt-canary
Commits
a2c863ae
Unverified
Commit
a2c863ae
authored
2 years ago
by
Simon Josefsson
Browse files
Options
Downloads
Patches
Plain Diff
Don't call gpgv if canary failed, apparently apt does not care about the exit code.
parent
94b23044
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apt-canary-gpgv
+4
-14
4 additions, 14 deletions
apt-canary-gpgv
with
4 additions
and
14 deletions
apt-canary-gpgv
+
4
−
14
View file @
a2c863ae
...
...
@@ -19,8 +19,6 @@ set -e
AT
=
"
$@
"
canary_rc
=
0
eval
$(
apt-config shell BASE_URL Canary::Base-URL
)
if
test
-z
"
$BASE_URL
"
;
then
logger
--tag
apt-canary
"witness URL not configured"
...
...
@@ -43,23 +41,15 @@ else
URL
=
"
$BASE_URL
/
$SHA256
.witness"
if
wget
-q
-O-
$URL
|
grep
"^Canary:
$URL
$"
>
/dev/null
;
then
canary_rc
=
0
logger
--tag
apt-canary
"successful witness
$URL
"
else
canary_rc
=
1
logger
--tag
apt-canary
"unable to find successful witness
$URL
"
cat
$datafile
| logger
--tag
apt-canary-datafile
cat
$signfile
| logger
--tag
apt-canary-signfile
fi
fi
gpgv
$AT
gpgv_rc
=
$?
if
test
"
$canary_rc
"
!=
"0"
;
then
exit
$canary_rc
exit
1
fi
fi
ex
it
$gpgv_rc
ex
ec
gpgv
$AT
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