OXYGENHUB

deb: name the machine's architecture in the apt source 73beb84b202a

As oxy's package (oxygen#85): the source had no Architectures line, so a
machine with i386 enabled got a notice on every apt update. New installs
write this machine's architecture; an upgrade adds it to a source
written before.

refs andymccall/oxygen#85
Author
Andy McCall @andymccall <[email protected]>
When
· 2026-10-08 16:21 UTC
Signature
✔ signed by Andy McCall
Hash
73beb84b202a8785d9caf0bb65e04c2feb6ae60cea0d5779133cba332a033cb8
Depends on
99ca93d60bca f2c9757605c1
Depended on by
nothing yet
In bookmarks
api-unknown-fields cancel-landed-runs clear-waiting close-proposal-140 diffusion-pin-bookmark draft-ready image-check job-waits main oh-comment-body-file proposal-list-fast run-one-job wiki-says-so
In tags
v0.4.1 v0.4.2 v0.5.0 v0.5.1 v0.5.2 v0.6.0 v0.6.1 v0.7.0 v0.8.0 v0.9.0 v0.9.1 v0.9.11 v0.9.15 v0.9.16 v0.9.19 v0.9.2 v0.9.20 v0.9.21 v0.9.22 v0.9.23 v0.9.24 v0.9.3 v0.9.4 v0.9.5 v0.9.6 v0.9.7 v0.9.8 v0.9.9
Edits
2 atoms, 0 tree operations, 1 file

Browse the tree at this change

modified scripts/dist.sh +8 −0
…
95 unchanged lines
96 96
URIs: https://oxygenhub.io/apt
97 97
Suites: stable
98 98
Components: main
99 +
Architectures: $(dpkg --print-architecture)
99 100
Signed-By: /usr/share/keyrings/oxygenhub-archive-keyring.gpg
100 101
SRC
101 102
  fi
103 +
  # Only this machine's architecture: with foreign ones enabled (i386 on
104 +
  # most amd64 systems) apt otherwise asks for packages the repository
105 +
  # has not got, and says so on every update. Sources written before
106 +
  # this get the line too.
107 +
  if [ -e "$L" ] && ! grep -q "^Architectures:" "$L"; then
108 +
    sed -i "/^Components:/a Architectures: $(dpkg --print-architecture)" "$L"
109 +
  fi
102 110
fi
103 111
EOF
104 112
    sed "s/@OTHER@/$OTHER_DEB/" >"$root/DEBIAN/postrm" <<'EOF'
…
28 unchanged lines