Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Add mitigations for nux-tools installing a broken Xsession.d file
· 53a9aa3b
Iain Lane
authored
Jun 21, 2018
https://bugs.launchpad.net/ubuntu/+source/nux/+bug/1768610
53a9aa3b
Finalise changelog
· 04f1a466
Iain Lane
authored
Jun 21, 2018
04f1a466
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
04f1a466
xorg (1:7.7+19ubuntu8) cosmic; urgency=medium
* x11-common.preinst:
- Rename nux config leftovers which might change the environment
even when not running an unity session (LP: #1768610)
* debian/control:
- x11-common breaks nux-tools (<< 4.0.8+18.04.20180613.5-0ubuntu1) - this
version contains the fixed conffile; if it's installed on the system we
need people to be upgraded to the new version.
-- Marco Trevisan (Treviño) <marco@ubuntu.com> Thu, 21 Jun 2018 11:37:03 +0100
xorg (1:7.7+19ubuntu7) bionic; urgency=medium
[ Simon Quigley ]
...
...
debian/control
View file @
04f1a466
...
...
@@ -18,6 +18,7 @@ Package: x11-common
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, lsb-base (>= 1.3-9ubuntu2)
Breaks: nux-tools (<< 4.0.8+18.10.20180613.3-0ubuntu1)
Description: X Window System (X.Org) infrastructure
x11-common contains the filesystem infrastructure required for further
installation of the X Window System in any configuration; it does not
...
...
debian/x11-common.preinst
0 → 100644
View file @
04f1a466
#!bin/sh
set
-e
rm_conffiles_if_uninstalled
()
{
PKGNAME
=
"
$1
"
MAXVERSION
=
"
$2
"
if
[
"
$(
dpkg-query
--show
--showformat
=
'${db:Status-Status}'
"
$PKGNAME
"
)
"
!=
"config-files"
]
;
then
return
0
;
fi
pkg_version
=
$(
dpkg-query
--show
--showformat
=
'${Version}'
"
$PKGNAME
"
)
if
dpkg
--compare-versions
"
$pkg_version
"
lt-nl
"
$MAXVERSION
"
;
then
conffiles
=
"
$(
dpkg-query
--show
-f
=
'${Conffiles}'
"
$PKGNAME
"
)
"
filepaths
=
"
$(
echo
"
$conffiles
"
|
cut
-f-2
-d
' '
)
"
for
cfile
in
$filepaths
;
do
if
[
-f
"
$cfile
"
]
;
then
echo
"Moving obsolete conffile
$cfile
to
$cfile
.x11-back..."
mv
-f
"
$cfile
"
"
$cfile
"
.x11-back
fi
done
fi
}
case
"
$1
"
in
install
|
upgrade
)
if
dpkg
--compare-versions
"
$2
"
lt 1:7.7+19ubuntu8
;
then
rm_conffiles_if_uninstalled nux-tools 4.0.8+18.10.20180613.3-0ubuntu1
fi
;;
esac
#DEBHELPER#