Compare commits
11 Commits
ubuntu/nob
...
backports/
Author | SHA1 | Date | |
---|---|---|---|
133ed1fa44 | |||
c01e753136 | |||
9cc705b107 | |||
a79e7b5762 | |||
|
72d86aad98 | ||
|
dff599698a | ||
|
61696b66d1 | ||
7ddbdcbb19 | |||
|
0acca6531c | ||
|
dc4fd8e2e9 | ||
|
5e6f21865d |
7
data/upg-notifier-autostart.desktop
Normal file
7
data/upg-notifier-autostart.desktop
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Exec=/usr/libexec/lubuntu-update-notifier/lubuntu-upg-notifier.sh
|
||||||
|
NoDisplay=true
|
||||||
|
Name=upgNotifier
|
||||||
|
Icon=system-software-update
|
||||||
|
Type=Application
|
||||||
|
Version=0.1
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,7 +1,7 @@
|
|||||||
lubuntu-update-notifier (0.6.1) UNRELEASED; urgency=medium
|
lubuntu-update-notifier (0.6.1~ppa23.10.4) mantic; urgency=medium
|
||||||
|
|
||||||
[ Simon Quigley ]
|
[ Simon Quigley ]
|
||||||
* Rough, initial migration to systemd units.
|
* Backport to Mantic.
|
||||||
* Update translation sources.
|
* Update translation sources.
|
||||||
|
|
||||||
[ FuRuYa7 ]
|
[ FuRuYa7 ]
|
||||||
@ -16,7 +16,7 @@ lubuntu-update-notifier (0.6.1) UNRELEASED; urgency=medium
|
|||||||
[ vaba ]
|
[ vaba ]
|
||||||
* Add an Estonian translation.
|
* Add an Estonian translation.
|
||||||
|
|
||||||
-- Simon Quigley <tsimonq2@ubuntu.com> Tue, 10 Oct 2023 14:14:56 -0500
|
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 01 Dec 2023 14:14:49 -0600
|
||||||
|
|
||||||
lubuntu-update-notifier (0.6.0) mantic; urgency=medium
|
lubuntu-update-notifier (0.6.0) mantic; urgency=medium
|
||||||
|
|
||||||
|
2
debian/lubuntu-update-notifier.install
vendored
Normal file
2
debian/lubuntu-update-notifier.install
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#data/upg-apply.desktop usr/share/applications
|
||||||
|
data/upg-notifier-autostart.desktop etc/xdg/autostart
|
12
debian/lubuntu-update-notifier.postinst
vendored
12
debian/lubuntu-update-notifier.postinst
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# This file can be removed following the release of Lubuntu 24.04 LTS
|
|
||||||
# It's to ensure a smooth transition between the autostart file and the new
|
|
||||||
# systemd user units provided
|
|
||||||
|
|
||||||
rm -f /etc/xdg/autostart/upg-notifier-autostart.desktop
|
|
||||||
rm -f /home/*/.config/autostart/upg-notifier-autostart.desktop
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
7
debian/lubuntu-update-notifier.user.service
vendored
7
debian/lubuntu-update-notifier.user.service
vendored
@ -1,7 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Lubuntu Update Notifier
|
|
||||||
Wants=update-notifier-download.timer
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/libexec/lubuntu-update-notifier/lubuntu-upg-notifier.sh
|
|
10
debian/lubuntu-update-notifier.user.timer
vendored
10
debian/lubuntu-update-notifier.user.timer
vendored
@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Lubuntu Update Notifier
|
|
||||||
Requires=lubuntu-update-notifier.service
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
Unit=lubuntu-update-notifier.service
|
|
||||||
OnCalendar=*-*-* *:00:00
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
@ -16,11 +16,13 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
OUT=`/usr/lib/update-notifier/apt-check 2>&1`
|
while true;
|
||||||
oldIFS=$IFS
|
do
|
||||||
IFS=';'
|
OUT=`/usr/lib/update-notifier/apt-check 2>&1`
|
||||||
j=0
|
oldIFS=$IFS
|
||||||
for STRING in $OUT; do
|
IFS=';'
|
||||||
|
j=0
|
||||||
|
for STRING in $OUT; do
|
||||||
case $j in
|
case $j in
|
||||||
0)
|
0)
|
||||||
UPG=$STRING;;
|
UPG=$STRING;;
|
||||||
@ -28,13 +30,14 @@ for STRING in $OUT; do
|
|||||||
SEC=$STRING;;
|
SEC=$STRING;;
|
||||||
esac
|
esac
|
||||||
j=`expr $j + 1`
|
j=`expr $j + 1`
|
||||||
done
|
done
|
||||||
IFS=$oldIFS
|
IFS=$oldIFS
|
||||||
|
|
||||||
NEWREL_CHECK=`/usr/bin/do-release-upgrade -c 2>&1`
|
NEWREL_CHECK=`/usr/bin/do-release-upgrade -c 2>&1`
|
||||||
NEWREL=$?
|
NEWREL=$?
|
||||||
if [ "$NEWREL" -eq 0 ]; then
|
if [ "$NEWREL" -eq 0 ]; then
|
||||||
VERSION=`echo $NEWREL_CHECK | awk -F\' '/available/{print $2}'`
|
VERSION=`echo $NEWREL_CHECK | awk -F\' '/available/{print $2}'`
|
||||||
fi
|
fi
|
||||||
|
/usr/libexec/lubuntu-update-notifier/lubuntu-notifier.py -u $UPG -s $SEC -r $NEWREL -v $VERSION -p /usr/bin/lubuntu-upgrader
|
||||||
/usr/libexec/lubuntu-update-notifier/lubuntu-notifier.py -u $UPG -s $SEC -r $NEWREL -v $VERSION -p /usr/bin/lubuntu-upgrader
|
sleep 86400
|
||||||
|
done;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user