Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nxd-bom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
nxd-bom
Commits
49fc9a26
Commit
49fc9a26
authored
Jun 05, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix namever for findutils url
parent
aef17caf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
nxdbom/__init__.py
nxdbom/__init__.py
+1
-1
nxdbom/nxdbom_test.py
nxdbom/nxdbom_test.py
+1
-0
No files found.
nxdbom/__init__.py
View file @
49fc9a26
...
...
@@ -301,7 +301,7 @@ def namever(url, failonerr=True): # -> (name, ver) | None if !failonerr
s = removesuffix(s, tail)
for tail in ['
-
py2
.
7
'] + ['
-
py3
.
%
d
' % _ for _ in range(20)]:
s = removesuffix(s, tail)
for tail in ('
-
source
', '
-
src
'):
for tail in ('
-
source
', '
-
src
'
, '
.
orig
'
):
s = removesuffix(s, tail)
return s
url = del_tgztail(url)
...
...
nxdbom/nxdbom_test.py
View file @
49fc9a26
...
...
@@ -46,6 +46,7 @@ from os.path import dirname, exists
(
'https://lab.nexedi.com/bk/onlyoffice_core/repository/archive.tar.bz2?ref=8a40eb47bd80a40ecde14c223525b21852d2fc9f'
,
'onlyoffice_core'
,
'8a40eb47bd80a40ecde14c223525b21852d2fc9f'
),
(
'http://snowball.tartarus.org/dist/libstemmer_c.tgz'
,
'libstemmer_c'
,
None
),
(
'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar.bz2'
,
'hdf5'
,
'1.10.0-patch1'
),
(
'http://ftp.debian.org/debian/pool/main/f/findutils/findutils_4.8.0.orig.tar.xz'
,
'findutils'
,
'4.8.0'
),
])
def
test_namever
(
url
,
nameok
,
verok
):
assert
nxdbom
.
namever
(
url
)
==
(
nameok
,
verok
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment