[Piuparts-devel] [Git][debian/piuparts][master] 10 commits: Open 1.3.1 development
Nicolas Dandrimont (@olasd)
gitlab at salsa.debian.org
Fri Mar 15 09:03:28 GMT 2024
Nicolas Dandrimont pushed to branch master at Debian / piuparts
Commits:
accfa06f by Nicolas Dandrimont at 2024-01-13T15:15:05+01:00
Open 1.3.1 development
- - - - -
28295102 by Nicolas Dandrimont at 2024-01-31T19:05:30+01:00
Add grub-efi-*-signed to packages that need allow-remove-essential.
They now have a Protected: yes flag.
Closes: #1062192
- - - - -
1f42c568 by Nicolas Dandrimont at 2024-03-15T09:37:40+01:00
.gitlab-ci: Add reference to new salsaci wrap-and-sort job
- - - - -
25fb4851 by Nicolas Dandrimont at 2024-03-15T09:39:26+01:00
*.py: apply newer black formatting
- - - - -
c94c2a99 by Stefano Rivera at 2024-03-15T09:39:36+01:00
Override umask when creating device nodes
Closes: #1064842
- - - - -
73ec6764 by Helmut Grohne at 2024-03-15T09:40:20+01:00
/bin/sync moved to /usr, duplicate diversion
- - - - -
1dec2351 by Nicolas Dandrimont at 2024-03-15T09:56:36+01:00
Merge branch 'override-umask' into develop
- - - - -
45c12f1d by Nicolas Dandrimont at 2024-03-15T09:56:51+01:00
Merge branch 'helmutg/fix-usr-moved-sync' into develop
- - - - -
971f866e by Nicolas Dandrimont at 2024-03-15T09:57:22+01:00
piuparts-from-git-deps: pkg-config is deprecated in favor of pkgconf
- - - - -
0885ccb2 by Nicolas Dandrimont at 2024-03-15T09:59:35+01:00
Release piuparts 1.4
- - - - -
12 changed files:
- .gitlab-ci/salsaci-overrides.yml
- custom-scripts/scripts/post_setup_force-unsafe-io
- custom-scripts/scripts/pre_remove_exceptions
- debian/changelog
- debian/control
- master-bin/detect_well_known_errors.py
- piuparts.py
- piupartslib/dependencyparser.py
- piupartslib/dwke.py
- tests/test_dependencyparser.py
- tests/test_piuparts.py
- tests/unittests.py
Changes:
=====================================
.gitlab-ci/salsaci-overrides.yml
=====================================
@@ -46,6 +46,8 @@ test-build-twice:
stage: salsaci/test
test-build-profiles:
stage: salsaci/test
+wrap-and-sort:
+ stage: salsaci/test
variables:
SALSA_CI_REPROTEST_ENABLE_DIFFOSCOPE: 1
=====================================
custom-scripts/scripts/post_setup_force-unsafe-io
=====================================
@@ -19,6 +19,7 @@ fi
if [ ! -h /bin/sync ]
then
- dpkg-divert --rename /bin/sync
+ dpkg-divert --rename /usr/bin/sync
+ dpkg-divert --rename --divert /bin/sync.usr-is-merged /bin/sync
ln -sv true /bin/sync
fi
=====================================
custom-scripts/scripts/pre_remove_exceptions
=====================================
@@ -68,6 +68,8 @@ case "$PIUPARTS_DISTRIBUTION" in
case ${PIUPARTS_OBJECTS%%=*} in
init|\
education-thin-client|\
+ grub-efi-amd64-signed|\
+ grub-efi-ia32-signed|\
ltsp-client|\
ltsp-client-core|\
ltsp-client-core-dbgsym)
=====================================
debian/changelog
=====================================
@@ -1,3 +1,21 @@
+piuparts (1.4) unstable; urgency=medium
+
+ [ Nicolas Dandrimont ]
+ * Add grub-efi-*-signed to packages that need allow-remove-essential.
+ (Closes: #1062192)
+ * .gitlab-ci: Add reference to new salsaci wrap-and-sort job
+ * *.py: apply newer black formatting
+ * piuparts-from-git-deps: pkg-config is deprecated in favor of pkgconf
+
+ [ Stefano Rivera ]
+ * Explicitly set the mode on device nodes created by piuparts, overriding
+ umask. (Closes: #1064842)
+
+ [ Helmut Grohne ]
+ * /bin/sync moved to /usr, duplicate diversion
+
+ -- Nicolas Dandrimont <olasd at debian.org> Fri, 15 Mar 2024 09:59:29 +0100
+
piuparts (1.3) unstable; urgency=medium
[ Helmut Grohne ]
=====================================
debian/control
=====================================
@@ -148,7 +148,7 @@ Architecture: all
Depends:
adequate,
git,
- pkg-config,
+ pkgconf,
# this list is synced from piuparts-slave
adduser,
openssh-client,
=====================================
master-bin/detect_well_known_errors.py
=====================================
@@ -43,7 +43,6 @@ class Busy(Exception):
class WKE_Config(piupartslib.conf.Config):
-
"""Configuration parameters for Well Known Errors"""
def __init__(self, section="global", defaults_section=None):
=====================================
piuparts.py
=====================================
@@ -66,7 +66,6 @@ DISTRO_CONFIG_FILE = "/etc/piuparts/distros.conf"
class Defaults:
-
"""Default settings which depend on flavor of Debian.
Some settings, such as the default mirror and distribution, depend on
@@ -119,7 +118,6 @@ class UbuntuDefaults(Defaults):
class DefaultsFactory:
-
"""Instantiate the right defaults class."""
def guess_flavor(self):
@@ -139,7 +137,6 @@ class DefaultsFactory:
class Settings:
-
"""Global settings for this program."""
def __init__(self):
@@ -766,7 +763,6 @@ FileInfo = namedtuple("FileInfo", ["st", "target", "user", "group"])
class Chroot:
-
"""A chroot for testing things in."""
def __init__(self):
@@ -1236,6 +1232,7 @@ class Chroot:
# mounting them individually.
try:
os.mknod(self.name + devname, stat.S_IFCHR | 0o666, devnum)
+ os.chmod(self.name + devname, 0o666) # Override umask
isdevice = True
except OSError as err:
if err.errno != errno.EPERM:
=====================================
piupartslib/dependencyparser.py
=====================================
@@ -32,7 +32,6 @@ import re
class DependencySyntaxError(Exception):
-
"""Syntax error in package dependency declaration"""
def __init__(self, msg, cursor):
@@ -51,7 +50,6 @@ class DependencySyntaxError(Exception):
class _Cursor:
-
"""Store an input string and a movable location in it"""
def __init__(self, myinput):
@@ -120,7 +118,6 @@ class _Cursor:
class SimpleDependency:
-
"""Express simple dependency towards another package"""
def __init__(self, name, operator, version, arch):
@@ -139,7 +136,6 @@ class SimpleDependency:
class DependencyParser:
-
"""Parse Debian package relationship strings
Debian packages have a rich language for expressing their
=====================================
piupartslib/dwke.py
=====================================
@@ -31,7 +31,6 @@ LOG_EXT = ".log"
class Problem:
-
"""Encapsulate a particular known problem"""
required_tags = ["PATTERN", "WHERE", "ISSUE", "HEADER", "HELPTEXT"]
@@ -113,7 +112,6 @@ class Problem:
class FailureManager:
-
"""Class to track known failures encountered, by package,
where (e.g. 'fail'), and known problem type"""
=====================================
tests/test_dependencyparser.py
=====================================
@@ -4,7 +4,6 @@ import piupartslib.dependencyparser
class DependencyParserTests(unittest.TestCase):
-
"""Tests for module dependencyparser."""
def parse(self, str):
=====================================
tests/test_piuparts.py
=====================================
@@ -52,9 +52,10 @@ class DefaultsFactoryTests(unittest.TestCase):
)
def test_new_defaults_panics_with_unknown_flavor(self):
- with patch.object(self.df, "guess_flavor", return_value="centos") as guess_flavor_mock, patch.object(
- piuparts, "panic", side_effect=SystemExit
- ) as panic_mock:
+ with (
+ patch.object(self.df, "guess_flavor", return_value="centos") as guess_flavor_mock,
+ patch.object(piuparts, "panic", side_effect=SystemExit) as panic_mock,
+ ):
with self.assertRaises(SystemExit):
self.df.new_defaults()
=====================================
tests/unittests.py
=====================================
@@ -6,7 +6,6 @@ import piupartslib.packagesdb
class FakeLogDB(piupartslib.packagesdb.LogDB):
-
"""A fake version of the LogDB class, for testing
This version simulates filesystem actions so that there is no need
View it on GitLab: https://salsa.debian.org/debian/piuparts/-/compare/74ef98a2feca628fa63fe2f5be21266685b4aadb...0885ccb2676f34e63c5ac89112a1672b0a95e7d1
--
View it on GitLab: https://salsa.debian.org/debian/piuparts/-/compare/74ef98a2feca628fa63fe2f5be21266685b4aadb...0885ccb2676f34e63c5ac89112a1672b0a95e7d1
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20240315/f5adf912/attachment-0001.htm>
More information about the Piuparts-devel
mailing list