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
de19d46d
Commit
de19d46d
authored
10 years ago
by
Santiago Rodriguez
Browse files
Options
Downloads
Patches
Plain Diff
Use local trusted.gpg when avaliable
parent
ffe01d5c
No related branches found
Branches containing commit
No related tags found
1 merge request
!7
V2 helpers as user
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpers/config
+11
-5
11 additions, 5 deletions
helpers/config
with
11 additions
and
5 deletions
helpers/config
+
11
−
5
View file @
de19d46d
...
...
@@ -57,10 +57,6 @@ echo | dch -D $CODENAME -v $(/bin/sed -n '1s/^.*(\(.*\)).*/\1'+${REVISION}trisqu
/bin/sed
"/-- Trisquel/s/.*/ -- Trisquel GNU
\/
Linux developers <trisquel-devel@listas.trisquel.info>
$DATE
/"
-i
debian/changelog
}
rm
-rf
PACKAGES/
$PACKAGE
mkdir
PACKAGES/
$PACKAGE
cd
PACKAGES/
$PACKAGE
#Setup local apt
...
...
@@ -82,11 +78,17 @@ pkgCacheGen::Essential "none";
Dir::Etc::Trusted "
${
LOCAL_APT
}
/etc/trusted.gpg";
EOF
if
[
-f
trusted.local.gpg
]
then
cp
trusted.local.gpg
"
${
LOCAL_APT
}
/etc/trusted.gpg"
else
#Trisquel key
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--keyserver
keyserver.ubuntu.com
--recv-keys
B4EFB9F38D8AEBF1
#Ubuntu gpg keys
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--keyserver
keyserver.ubuntu.com
--recv-keys
40976EAF437D05B5
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--keyserver
keyserver.ubuntu.com
--recv-keys
3B4FE6ACC0B21F32
fi
cat
<<
EOF
>
${
LOCAL_APT
}
/etc/apt.sources.list
deb-src
$MIRROR
$UPSTREAM
main universe
...
...
@@ -99,9 +101,13 @@ EOF
[
"1
$SIGNKEY
"
!=
"1"
]
&&
apt-key
--keyring
${
LOCAL_APT
}
/etc/trusted.gpg adv
--recv-keys
--keyserver
keyserver.ubuntu.com
$SIGNKEY
apt-get update
-c
$LOCAL_APT
/etc/apt.conf
#Cleanup
rm
-rf
PACKAGES/
$PACKAGE
mkdir
PACKAGES/
$PACKAGE
cd
PACKAGES/
$PACKAGE
#Get package and uncompress it
apt-get update
-c
$LOCAL_APT
/etc/apt.conf
apt-get
source
$PACKAGE
--download-only
-c
${
LOCAL_APT
}
/etc/apt.conf
dpkg-source
-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