ubiquity: Forward nabia's ubiquity changes to aramo
This commit is contained in:
parent
4372c7f922
commit
aadc0d6ea5
1 changed files with 33 additions and 23 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011-2021 Ruben Rodriguez <ruben@trisquel.info>
|
# Copyright (C) 2011-2022 Ruben Rodriguez <ruben@trisquel.info>
|
||||||
# Copyright (C) 2019 Mason Hock <mason@masonhock.com>
|
# Copyright (C) 2019 Mason Hock <mason@masonhock.com>
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
|
@ -18,14 +18,12 @@
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=23
|
VERSION=24
|
||||||
EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu impish main universe'
|
|
||||||
#REPOKEY="871920D1991BC93C"
|
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
||||||
#Patch python test after tzdata update.
|
#Patch python test after tzdata update.
|
||||||
sed 's/Canada/Bahamas/' -i ./tests/test_timezone.py
|
#sed 's/Canada/Bahamas/' -i ./tests/test_timezone.py
|
||||||
|
|
||||||
# Enable full disk encryption by default. Disabled, as it hinders a11y and sighted people can choose to enable it.
|
# Enable full disk encryption by default. Disabled, as it hinders a11y and sighted people can choose to enable it.
|
||||||
#patch -p0 < $DATA/nabia_encrypt_by_default.patch
|
#patch -p0 < $DATA/nabia_encrypt_by_default.patch
|
||||||
|
|
@ -43,6 +41,9 @@ sed '/universe multiverse/d' -i bin/oem-config-remaster
|
||||||
# Use standard monospaced font for console
|
# Use standard monospaced font for console
|
||||||
sed 's/Ubuntu Mono/Monospace Regular/' -i ubiquity/frontend/gtk_ui.py
|
sed 's/Ubuntu Mono/Monospace Regular/' -i ubiquity/frontend/gtk_ui.py
|
||||||
|
|
||||||
|
# Start a11y-profile-manager-indicator only if not running already
|
||||||
|
sed "/if osextras.find_on_path..a11y-profile-manager-indicator/s/:/ and (subprocess.run(\n ['pgrep', '-f', 'a11y-profile-manager-indicator'], capture_output=True).returncode == 0):/" -i ubiquity/frontend/gtk_ui.py
|
||||||
|
|
||||||
# Fixes issues starting orca
|
# Fixes issues starting orca
|
||||||
sed "/Popen/s/'orca'/'orca', '--replace'/" -i ubiquity/frontend/gtk_ui.py
|
sed "/Popen/s/'orca'/'orca', '--replace'/" -i ubiquity/frontend/gtk_ui.py
|
||||||
|
|
||||||
|
|
@ -90,11 +91,13 @@ file="\$1"
|
||||||
FASTEST=https://archive.trisquel.org/trisquel/
|
FASTEST=https://archive.trisquel.org/trisquel/
|
||||||
SPEED=1000000000000
|
SPEED=1000000000000
|
||||||
|
|
||||||
for i in \$(grep 'tp:' /usr/share/python-apt/templates/Trisquel.mirrors)
|
if nm-online -xq
|
||||||
do
|
then
|
||||||
|
for i in \$(grep '//' /usr/share/python-apt/templates/Trisquel.mirrors | sed 's|/$||')
|
||||||
|
do
|
||||||
echo Testing \$i
|
echo Testing \$i
|
||||||
TIME=\$(date +%s%N)
|
TIME=\$(date +%s%N)
|
||||||
wget -t 1 -T 5 --max-redirect=0 -o /dev/null -O /dev/null \$i/speedtest || continue
|
wget --no-check-certificate -t 1 -T 5 --max-redirect=0 -o /dev/null -O /dev/null \$i/speedtest || continue
|
||||||
TIME2=\$(date +%s%N)
|
TIME2=\$(date +%s%N)
|
||||||
ELAPSED=\$(expr \$TIME2 - \$TIME)
|
ELAPSED=\$(expr \$TIME2 - \$TIME)
|
||||||
echo Time: \$ELAPSED
|
echo Time: \$ELAPSED
|
||||||
|
|
@ -103,7 +106,10 @@ do
|
||||||
FASTEST=\$i
|
FASTEST=\$i
|
||||||
SPEED=\$ELAPSED
|
SPEED=\$ELAPSED
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Selected mirror: \$FASTEST"
|
||||||
|
|
||||||
MIRROR=\$FASTEST
|
MIRROR=\$FASTEST
|
||||||
RELEASE=\$(lsb_release -c | cut -f 2)
|
RELEASE=\$(lsb_release -c | cut -f 2)
|
||||||
|
|
@ -207,11 +213,12 @@ replace Trisquel-Gettext-Domain Ubuntu-Gettext-Domain
|
||||||
## Korean - Fix #27659
|
## Korean - Fix #27659
|
||||||
replace 우분투 Trisquel .
|
replace 우분투 Trisquel .
|
||||||
#replace triskel-ubiquity kubuntu-ubiquity
|
#replace triskel-ubiquity kubuntu-ubiquity
|
||||||
replace "launchpad.net/ubuntu/+source/ubiquity/+filebug" "trisquel.info/project/issues" .
|
replace "https://bugs.launchpad.net/ubuntu/+source/.*/+bug/" "LP:#" .
|
||||||
replace "launchpad.net/ubuntu/+source/ubiquity/" "trisquel.info/project/issues" .
|
replace "https://git.launchpad.net/ubuntu/+source/" "https://gitlab.trisquel.org/trisquel/" .
|
||||||
replace "launchpad.net/ubuntu/+source/" "trisquel.info/project/issues" .
|
replace "launchpad.net/ubuntu/+source/ubiquity/+filebug" "gitlab.trisquel.org/trisquel/package-helpers/-/issues" .
|
||||||
replace "ubiquity/+filebug" "" .
|
replace "ubiquity/+filebug" "" .
|
||||||
replace "+filebug" "" .
|
replace "+filebug" "" .
|
||||||
|
replace " ubuntu/devel$" "" .
|
||||||
replace archive.ubuntu.com/ubuntu archive.trisquel.org/trisquel .
|
replace archive.ubuntu.com/ubuntu archive.trisquel.org/trisquel .
|
||||||
replace security.ubuntu.com/trisquel archive.trisquel.org/trisquel .
|
replace security.ubuntu.com/trisquel archive.trisquel.org/trisquel .
|
||||||
replace archive.ubuntu.com archive.trisquel.org .
|
replace archive.ubuntu.com archive.trisquel.org .
|
||||||
|
|
@ -254,7 +261,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Hacks for accessibility
|
# Hacks for accessibility
|
||||||
if [ \$(gsettings get com.canonical.a11y-profile-manager active-profile) == "'blindness'" ]
|
if [ \$(gsettings get org.mate.interface accessibility) = "true" ]
|
||||||
then
|
then
|
||||||
echo "Accessibility profile set to 'blindness', enabling screen reader by default in target system"
|
echo "Accessibility profile set to 'blindness', enabling screen reader by default in target system"
|
||||||
echo "[org.mate.applications-at]
|
echo "[org.mate.applications-at]
|
||||||
|
|
@ -290,6 +297,9 @@ sed '/Package: ubiquity-frontend-kde/,/Depends/s/Depends:/Depends: libkf5kdelibs
|
||||||
sed 's/Trisquel/Trsql/' -i ubiquity/plugins/ubi-partman.py
|
sed 's/Trisquel/Trsql/' -i ubiquity/plugins/ubi-partman.py
|
||||||
sed 's/Trisquel-Battersea/Ubuntu-Battersea/' -i tests/test_gtkwidgets.py
|
sed 's/Trisquel-Battersea/Ubuntu-Battersea/' -i tests/test_gtkwidgets.py
|
||||||
|
|
||||||
|
#Remove ubuntu-artwork dependency
|
||||||
|
sed -i '/ubuntu-artwork,/d' debian/control
|
||||||
|
|
||||||
changelog "Adapted for Trisquel"
|
changelog "Adapted for Trisquel"
|
||||||
|
|
||||||
rm -rf debian/source
|
rm -rf debian/source
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue