Skip to content

Instantly share code, notes, and snippets.

View julian-klode's full-sized avatar

Julian Andres Klode julian-klode

View GitHub Profile
diff -Nru base-files-13.1ubuntu1/debian/changelog base-files-13.1ubuntu2/debian/changelog
--- base-files-13.1ubuntu1/debian/changelog 2024-05-01 00:20:45.000000000 +0200
+++ base-files-13.1ubuntu2/debian/changelog 2024-06-10 17:30:19.000000000 +0200
@@ -1,3 +1,9 @@
+base-files (13.1ubuntu2) UNRELEASED; urgency=medium
+
+ * Rename protective diversions to include a leading dot as Debian does.
+
+ -- Julian Andres Klode <[email protected]> Mon, 10 Jun 2024 17:30:19 +0200
+
diff -Nru base-files-13.1ubuntu1/debian/changelog base-files-13.1ubuntu2/debian/changelog
--- base-files-13.1ubuntu1/debian/changelog 2024-05-01 00:20:45.000000000 +0200
+++ base-files-13.1ubuntu2/debian/changelog 2024-06-10 17:30:19.000000000 +0200
@@ -1,3 +1,9 @@
+base-files (13.1ubuntu2) UNRELEASED; urgency=medium
+
+ * Rename protective diversions to include a leading dot as Debian does.
+
+ -- Julian Andres Klode <[email protected]> Mon, 10 Jun 2024 17:30:19 +0200
+
#!/bin/bash
#
# Invoke me as
set -e
set -u
set -o pipefail
if [ "$0" != "/analyse.sh" ]; then
test -e /usr/bin/docker && docker=docker

apt-install(8)

NAME

apt-install, apt-remove - Install or remove packages

SYNOPSIS

apt install [<options>] [<package specifiers>]

import math
import random
mirrors = [f"m{i:02}" for i in range(45)]
active_mirrors = {}
sent_so_far = 0
for item in (f"i{i:02}" for i in range(90)):
if math.floor(math.sqrt(sent_so_far + 1)) > len(active_mirrors):
chosen = random.choice(mirrors)
print(f"Adding mirror #{len(active_mirrors)+1}: {chosen}")
@julian-klode
julian-klode / download.md
Last active April 15, 2024 13:45
APT UX redesign drafts

Redesigning the acquire progress

Current progress

  • One line per file that started downloading
  • Summary line with a total percentage and one or more [ ] with per-item details shopwing ID,name,downloaded/item size,%

Example:

$ apt download wesnoth-1.16-data llvm-18

Get:1 https://debian.charite.de/ubuntu noble/main amd64 apt amd64 2.7.14build2 [1.375 kB]
package:arch=version [███ ] package:arch=version [███ ]
package:arch=version [███ ] package:arch=version [███ ]
Downloading [5 MB/s] [█████ ] ETA 5s
package:arch=version [██ ] package:arch=version [██ ]
package:arch=version [██ ] package:arch=version [██ ]
Downloading [5 MB/s] [████ ] ETA 5s
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py
index 0692ef90c..27a45d796 100644
--- a/DistUpgrade/DistUpgradeCache.py
+++ b/DistUpgrade/DistUpgradeCache.py
@@ -449,6 +449,23 @@ class MyCache(apt.Cache):
if pkg in self:
self._depcache.mark_delete(self[pkg]._pkg, True)
+ def _do_not_install(self, pkgname, reason):
+ if (pkgname in self
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py
index 0692ef90c..27a45d796 100644
--- a/DistUpgrade/DistUpgradeCache.py
+++ b/DistUpgrade/DistUpgradeCache.py
@@ -449,6 +449,23 @@ class MyCache(apt.Cache):
if pkg in self:
self._depcache.mark_delete(self[pkg]._pkg, True)
+ def _do_not_install(self, pkgname, reason):
+ if (pkgname in self