mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-11 13:17:21 +00:00
Fix computation of Origin fields for PPAs named "ppa" and document the
exception along with the expected format for the PPA var in comments.
This commit is contained in:
parent
106b4d3868
commit
e5a529f136
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -12,6 +12,8 @@ livecd-rootfs (0.99) UNRELEASED; urgency=low
|
||||
one.
|
||||
* Gross hack to reinstall the moblin-ppa-keyring package after the trusted
|
||||
db is put back in place since otherwise we miss the GPG key we wanted.
|
||||
* Fix computation of Origin fields for PPAs named "ppa" and document the
|
||||
exception along with the expected format for the PPA var in comments.
|
||||
|
||||
-- Loïc Minier <loic.minier@ubuntu.com> Thu, 24 Sep 2009 11:52:25 +0200
|
||||
|
||||
|
@ -118,6 +118,8 @@ EXCLUDE=""
|
||||
LIST=""
|
||||
SUBARCH=""
|
||||
PROPOSED=""
|
||||
# must be in the "team / PPA name" form; e.g. "moblin/ppa"; the default PPA
|
||||
# name is "ppa", don't omit it
|
||||
PPA=""
|
||||
|
||||
while getopts :d:e:i:I:m:S:s:a:p name; do case $name in
|
||||
@ -383,10 +385,14 @@ Pin-Priority: 900
|
||||
if [ -n "$PPA" ]; then
|
||||
echo deb http://$PPAMIRROR/$PPA/ubuntu ${STE} main >> ${ROOT}etc/apt/sources.list
|
||||
|
||||
# handle PPAs named "ppa" specially; their Origin field in the Release
|
||||
# file does not end with "-ppa" for backwards compatibility
|
||||
origin="${PPA%/ppa}"
|
||||
origin="${origin/\//-}"
|
||||
touch ${ROOT}etc/apt/preferences
|
||||
cat << @@EOF >> ${ROOT}etc/apt/preferences
|
||||
Package: *
|
||||
Pin: release o=LP-PPA-${PPA/\//-}
|
||||
Pin: release o=LP-PPA-$origin
|
||||
Pin-Priority: 550
|
||||
@@EOF
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user