Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
trisquel
package-helpers
Commits
59c7d6d6
Commit
59c7d6d6
authored
5 years ago
by
Ruben Rodriguez
Browse files
Options
Downloads
Patches
Plain Diff
Better gpg signature checking
parent
1469f142
No related branches found
Branches containing commit
No related tags found
4 merge requests
!307
Etiona test mr
,
!274
dvdstyler package helper for flidas
,
!273
dvdstyler package helper
,
!179
Corrected patch for make-bleachbit
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpers/config
+9
-14
9 additions, 14 deletions
helpers/config
with
9 additions
and
14 deletions
helpers/config
+
9
−
14
View file @
59c7d6d6
...
@@ -134,21 +134,16 @@ cd PACKAGES/$PACKAGE
...
@@ -134,21 +134,16 @@ cd PACKAGES/$PACKAGE
apt-get update
-c
$LOCAL_APT
/etc/apt.conf
apt-get update
-c
$LOCAL_APT
/etc/apt.conf
apt-get
source
$PACKAGE
--download-only
-c
${
LOCAL_APT
}
/etc/apt.conf
apt-get
source
$PACKAGE
--download-only
-c
${
LOCAL_APT
}
/etc/apt.conf
# Verify it first
# Verify it first
# Import the key for the package uploader
if
grep
-q
"BEGIN PGP SIGNATURE"
*
.dsc
;
then
# Use the one listed in the helper if available, otherwise download the one listed in the dsc
KEY
=
$(
gpg2
--keyid-format
0xlong
--verify
*
.dsc 2>&1 |
grep
0x |
sed
's/.*0x//'
||
true
)
if
[
"1
$SIGNKEY
"
!=
"1"
]
;
then
[
-z
"
$KEY
"
]
&&
KEY
=
$(
gpgv
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg
*
.dsc 2>&1 | egrep
".SA key"
|
sed
's/.*.SA key //'
||
true
)
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--recv-keys
--keyserver
hkps://keyserver.ubuntu.com:443
$SIGNKEY
>
/dev/null
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--recv-keys
--keyserver
hkps://keyserver.ubuntu.com:443
$KEY
>
/dev/null
gpgv
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg
*
.dsc
touch
${
LOCAL_APT
}
/keyring.gpg
gpg2
--keyring
${
LOCAL_APT
}
/keyring.gpg
--import
${
LOCAL_APT
}
/etc/trusted.gpg
gpg2
--verify
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg
*
.dsc
else
else
if
grep
-q
"BEGIN PGP SIGNATURE"
*
.dsc
;
then
echo
WARNING! The dsc file is not gpg signed!
KEY
=
$(
gpgv
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg
*
.dsc 2>&1 |
grep
"key ID"
|
sed
's/.*key ID //'
||
true
)
[
-z
"
$EXTERNAL
"
]
&&
exit
1
[
-z
"
$KEY
"
]
&&
KEY
=
$(
gpgv
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg
*
.dsc 2>&1 | egrep
".SA key"
|
sed
's/.*.SA key //'
||
true
)
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--recv-keys
--keyserver
hkps://keyserver.ubuntu.com:443
$KEY
>
/dev/null
gpgv
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg
*
.dsc
else
echo
WARNING! The dsc file is not gpg signed!
[
-z
"
$EXTERNAL
"
]
&&
exit
1
fi
fi
fi
dpkg-source
--no-check
-x
--skip-patches
*
.dsc
source
dpkg-source
--no-check
-x
--skip-patches
*
.dsc
source
...
...
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