Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
debian
tor
Commits
e963f614
Commit
e963f614
authored
9 months ago
by
David Goulet
Browse files
Options
Downloads
Plain Diff
Merge branch 'maint-0.4.8' into release-0.4.8
parents
b8c4d2a7
50800fa2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/maint/lintChanges.py
+3
-3
3 additions, 3 deletions
scripts/maint/lintChanges.py
with
3 additions
and
3 deletions
scripts/maint/lintChanges.py
+
3
−
3
View file @
e963f614
...
@@ -51,7 +51,7 @@ def split_tor_version(version):
...
@@ -51,7 +51,7 @@ def split_tor_version(version):
If the version is malformed, returns None.
If the version is malformed, returns None.
'''
'''
version_match
=
re
.
match
(
'
([0-9]+)\.([0-9]+)\.([0-9]+)(\.([0-9]+))?
'
,
version
)
version_match
=
re
.
match
(
r
'
([0-9]+)\.([0-9]+)\.([0-9]+)(\.([0-9]+))?
'
,
version
)
if
version_match
is
None
:
if
version_match
is
None
:
return
None
return
None
...
@@ -120,13 +120,13 @@ def lintfile(fname):
...
@@ -120,13 +120,13 @@ def lintfile(fname):
if
re
.
search
(
r
'
[bB]ug (\d+)
'
,
contents
):
if
re
.
search
(
r
'
[bB]ug (\d+)
'
,
contents
):
if
not
re
.
search
(
r
'
[Bb]ugfix on
'
,
contents
):
if
not
re
.
search
(
r
'
[Bb]ugfix on
'
,
contents
):
warn
(
"
Bugfix does not say
'
bugfix on X.Y.Z
'"
)
warn
(
"
Bugfix does not say
'
bugfix on X.Y.Z
'"
)
elif
not
re
.
search
(
'
[fF]ixes ([a-z ]*)bugs? (\d+)((, \d+)* and \d+)?; bugfix on
'
,
elif
not
re
.
search
(
r
'
[fF]ixes ([a-z ]*)bugs? (\d+)((, \d+)* and \d+)?; bugfix on
'
,
contents
):
contents
):
warn
(
"
Bugfix does not say
'
Fixes bug X; bugfix on Y
'"
)
warn
(
"
Bugfix does not say
'
Fixes bug X; bugfix on Y
'"
)
elif
re
.
search
(
'
tor-([0-9]+)
'
,
contents
):
elif
re
.
search
(
'
tor-([0-9]+)
'
,
contents
):
warn
(
"
Do not prefix versions with
'
tor-
'
. (
'
0.1.2
'
, not
'
tor-0.1.2
'
.)
"
)
warn
(
"
Do not prefix versions with
'
tor-
'
. (
'
0.1.2
'
, not
'
tor-0.1.2
'
.)
"
)
else
:
else
:
bugfix_match
=
re
.
search
(
'
bugfix on ([0-9]+\.[0-9]+\.[0-9]+)
'
,
contents
)
bugfix_match
=
re
.
search
(
r
'
bugfix on ([0-9]+\.[0-9]+\.[0-9]+)
'
,
contents
)
if
bugfix_match
is
None
:
if
bugfix_match
is
None
:
warn
(
"
Versions must have at least 3 digits. (
'
0.1.2
'
,
'
0.3.4.8
'
, or
'
0.3.5.1-alpha
'
.)
"
)
warn
(
"
Versions must have at least 3 digits. (
'
0.1.2
'
,
'
0.3.4.8
'
, or
'
0.3.5.1-alpha
'
.)
"
)
elif
bugfix_match
.
group
(
0
)
is
None
:
elif
bugfix_match
.
group
(
0
)
is
None
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment