Skip to content

Commit 5bace49

Browse files
committed
Merge branch 'main' into opensuse
2 parents e13ef0f + c13a7e1 commit 5bace49

5 files changed

Lines changed: 21 additions & 13 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2626

2727
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
28+
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
2929
with:
3030
languages: ${{ matrix.language }}
3131
queries: +security-and-quality
3232

3333
- name: Autobuild
34-
uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
34+
uses: github/codeql-action/autobuild@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
3535

3636
- name: Perform CodeQL Analysis
37-
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
37+
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
3838
with:
3939
category: "/language:${{ matrix.language }}"

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,9 @@ jobs:
112112
if: matrix.build-type == 'no-optional-deps'
113113
- run: pipx install coveralls
114114
- run: pipx install pyupgrade
115-
- run: pipx install ruff
116-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
115+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
117116
- run: pytest
118117
- run: flake8
119-
- run: /github/home/.local/bin/ruff check .
120118
- run: find . -not -path "./test/files/*" -name '*.py' | xargs /github/home/.local/bin/pyupgrade --py38-plus
121119
- run: python3 -m cProfile -o profile.stats lint.py -V test/source/* test/binary/* > /dev/null
122120
- run: python3 test/dump_stats.py profile.stats

.packit/rpmlint.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%{!?python3: %global python3 %{__python3}}
22

33
Name: rpmlint
4-
Version: 2.9.0
4+
Version: 2.10.0
55
Release: 0%{?dist}
66
Summary: Tool for checking common errors in RPM packages
77

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "rpmlint"
9-
version = "2.9.0"
9+
version = "2.10.0"
1010
description = "Check for common errors in RPM packages"
1111
license = {text = "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)"}
1212
authors = [

rpmlint/checks/ErlangCheck.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,24 @@ def check_file(self, pkg, filename):
2020
self.output.add_info('W', pkg, 'beam-compile-info-missed', filename)
2121
return
2222

23-
compile_state = byte_to_string(beam.compileinfo['source'])
24-
if 'debug_info' not in beam.compileinfo['options']:
23+
# Beams compiled with the 'deterministic' option omit the
24+
# 'source' and 'options' entries from the compile info. For
25+
# those, fall back to the presence of the debug info chunk.
26+
options = beam.compileinfo.get('options')
27+
if options is None:
28+
has_debug_info = beam.selectChunkByName(b'Dbgi') is not None
29+
else:
30+
has_debug_info = 'debug_info' in options
31+
if not has_debug_info:
2532
self.output.add_info('E', pkg, 'beam-compiled-without-debuginfo', filename)
2633

2734
# This can't be an error as builddir can be user specific and vary between users
2835
# it could be error in OBS where all the builds are done by user abuild, not in
2936
# general.
30-
if not self.source_re.match(compile_state):
31-
self.output.add_info('W', pkg, 'beam-was-not-recompiled', filename, compile_state)
37+
source = beam.compileinfo.get('source')
38+
if source is not None:
39+
compile_state = byte_to_string(source)
40+
if not self.source_re.match(compile_state):
41+
self.output.add_info('W', pkg, 'beam-was-not-recompiled', filename, compile_state)
3242
except Exception:
3343
self.output.add_info('E', pkg, 'pybeam-failed', filename)

0 commit comments

Comments
 (0)