Skip to content

Instantly share code, notes, and snippets.

View mwhudson's full-sized avatar

Michael Hudson-Doyle mwhudson

View GitHub Profile
diff --git a/debian/changelog b/debian/changelog
index e4b6c681..74c7a2e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+livecd-rootfs (2.765) UNRELEASED; urgency=medium
+
+ * Produce a tarball of artefacts for netbooting during live-server build.
+
+ -- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Mon, 16 May 2022 21:29:39 +1200
@mwhudson
mwhudson / pgrpfun.py
Created April 1, 2021 02:56
the unix end boss is hard
import os
import pty
import signal
import sys
import subprocess
import time
def am_i_foreground():
if os.tcgetpgrp(0) == os.getpgrp():
# Copyright 2020 Canonical, Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#!/usr/bin/perl -w
sub usage () {
die 'ppa-version ppa:$user/$archive $package [$series] [$arch]';
}
$ARGV[0] =~ /^ppa:([a-z-]+)\/([a-z0-9.-]+)/ || usage;
my $package = $ARGV[1] || usage;
my $series = $ARGV[2] || qx/distro-info --devel/;
@mwhudson
mwhudson / backportrust.sh
Last active July 15, 2021 10:56
scripts for updating rustc/cargo in ubuntu
#!/bin/bash
set -eu
series=$1
source=$(dpkg-parsechangelog -SSource)
version=$(dpkg-parsechangelog -SVersion)
branch=$(git rev-parse --abbrev-ref HEAD)
#!/bin/bash
set -eux
tarball=$1
#tmpdir=$(mktemp -d)
#cleanup () { rm -rf $tmpdir; }
#trap cleanup EXIT
tmpdir=../my-uupdate-work
rm -rf $tmpdir
mkdir $tmpdir
Building, see build.log...
Build OK (0:00:03.004193 elapsed)
============================= test session starts ==============================
platform linux -- Python 3.6.6+, pytest-3.6.4, py-1.5.4, pluggy-0.6.0
rootdir: /root/scipy, inifile: pytest.ini
collected 1 item
scipy/special/tests/test_mpmath.py F [100%]
=================================== FAILURES ===================================
Building, see build.log...
Build OK (0:00:02.503862 elapsed)
============================= test session starts ==============================
platform linux -- Python 3.6.6+, pytest-3.6.4, py-1.5.4, pluggy-0.6.0 -- /usr/bin/python3.6
cachedir: ../../../../../.pytest_cache
rootdir: /root/scipy, inifile: pytest.ini
collecting ... collected 1 item
scipy/linalg/tests/test_interpolative.py::TestInterpolativeDecomposition::test_id FAILED [100%]
Building, see build.log...
Build OK (0:00:03.504590 elapsed)
============================= test session starts ==============================
platform linux -- Python 3.6.6+, pytest-3.6.4, py-1.5.4, pluggy-0.6.0 -- /usr/bin/python3.6
cachedir: ../../../../../.pytest_cache
rootdir: /root/scipy, inifile: pytest.ini
collecting ... collected 1 item
scipy/interpolate/tests/test_polyint.py::TestCubicSpline::test_general FAILED [100%]
Building, see build.log...
Build OK (0:00:03.504582 elapsed)
============================= test session starts ==============================
platform linux -- Python 3.6.6+, pytest-3.6.4, py-1.5.4, pluggy-0.6.0 -- /usr/bin/python3.6
cachedir: ../../../../../.pytest_cache
rootdir: /root/scipy, inifile: pytest.ini
collecting ... collected 1 item
scipy/special/tests/test_orthogonal.py::test_roots_jacobi FAILED [100%]