Added upgrade paths to update-manager

This commit is contained in:
Rubén Rodríguez 2013-04-23 19:10:59 +02:00
parent c94bde3f48
commit 4dc0761f07
7 changed files with 64 additions and 313 deletions

View file

@ -21,7 +21,7 @@
# gpg -ba release_name.tar.gz
# Also, don't forget to update the meta-release files at archive and packages.t.i
VERSION=6
VERSION=12
. ./config
@ -39,6 +39,20 @@ rm tests/test-data/xorg.conf.fglrx
apt-get remove --purge -y nvidia-common || true
apt-get remove --purge -y fglrx-modaliases || true
#https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/990740
cat << EOF >> DistUpgrade/DistUpgradeQuirks.py
def from_taranisPostInitialUpdate(self):
logging.debug("Setting APT::Immediate-Configure=false")
apt.apt_pkg.config.set("APT::Immediate-Configure", "false")
os.system("apt-get install --force-yes -y libblkid1 lzma dpkg")
def from_taranisPostCleanup(self):
logging.debug("Setting APT::Immediate-Configure=true")
apt.apt_pkg.config.set("APT::Immediate-Configure", "true")
EOF
rm ./DistUpgrade/Ubuntu.info
cat << EOF > DistUpgrade/Trisquel.info
ChangelogURI: http://packages.trisquel.info/changelogs/pool/%s/%s/%s/%s_%s/%s
@ -81,6 +95,7 @@ cat << EOF > DistUpgrade/ReleaseAnnouncement
= Welcome to Trisquel GNU/Linux $REVISION '$CODENAME' =
The Trisquel team is proud to announce Trisquel $REVISION '$CODENAME'.
We recommend to apply all pending updates to the system before upgrading.
Trisquel is a fully free operating system based in GNU/Linux, for domestic
users, small enterprises and educational centers.
@ -209,7 +224,6 @@ EOF
rm DistUpgrade/DistUpgrade.cfg*
cp $DATA/DistUpgrade.cfg* DistUpgrade/
cp $DATA/DistUpgrade.cfg.$CODENAME DistUpgrade/DistUpgrade.cfg
cat << EOF1 > DistUpgrade/trisquel-postinstall.sh
#!/bin/sh
@ -288,3 +302,4 @@ changelog "Compiled for Trisquel"
compile
cp ../dist-upgrader* /root