Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Adam Mercer
Koji Packager
Commits
f99c14c5
Verified
Commit
f99c14c5
authored
May 16, 2019
by
Adam Mercer
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utils.py: consistent quote usage
parent
4241db80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gwkoji/utils.py
gwkoji/utils.py
+4
-4
No files found.
gwkoji/utils.py
View file @
f99c14c5
...
...
@@ -77,13 +77,13 @@ def source_type(source):
"""
source
=
pathlib
.
Path
(
source
)
name
=
source
.
name
if
name
.
endswith
(
"
.src.rpm
"
):
if
name
.
endswith
(
'
.src.rpm
'
):
return
'srcrpm'
if
name
.
endswith
(
"
.spec
"
):
if
name
.
endswith
(
'
.spec
'
):
return
'spec'
if
name
.
endswith
(
"
.tar
"
)
or
source
.
stem
.
endswith
(
"
.tar
"
):
if
name
.
endswith
(
'
.tar
'
)
or
source
.
stem
.
endswith
(
'
.tar
'
):
return
'tarball'
if
str
(
source
).
startswith
((
"
git+https
"
,
"
git+ssh
"
)):
if
str
(
source
).
startswith
((
'
git+https
'
,
'
git+ssh
'
)):
return
'git'
raise
ValueError
(
"failed to determine source type for '{0}'"
.
format
(
source
),
...
...
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