Wouldn't a strategically placedSchoelje wrote:On stretch, you'll need to install solydx/k-system-adjustments-9 manually. There was no way of making a transaction package (the old solydx/k-system-adjustments) that could decide whether to install the -8 or -9 version depending on the underlying Debian version.grizzler wrote:The solydx/k-system-adjustments packages have a Depends: solydx/k-system-adjustments-8. However, currently the system-adjustments packages are the same on jessie and stretch systems. So I expect the -8 package to be pulled in on both (haven't had time to actually test this yet...).
Code: Select all
if ver == 9: for badpkg in ['solydk-system-adjustments-8','solydx-system-adjustments-8']: if getPackageVersion(badpkg) != '': if getAptCacheLockedProgram() == '': goodpkg = badpkg[0:-1] + '9' os.system("apt-get %s --assume-yes purge %s" % (force,badpkg)) os.system("apt-get %s --assume-yes install %s" % (force,goodpkg))
By the way, you may want to change the 'head -c 1' in line 31 to 'head -n 1' before Buster appears, because otherwise 'ver' would become 1.0 instead of 10.0 (provided Debian keeps the actual version number in /etc/debian_version and doesn't go back to putting 'testing/sid' in there...).