mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-19 03:30:12 +02:00
use .as_posix()
This commit is contained in:
parent
86b053291d
commit
bf9cbc87a9
@ -25,7 +25,7 @@ import sys
|
|||||||
import yaml
|
import yaml
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
import logging
|
import logging
|
||||||
from pathlib import Path, PurePosixPath
|
from pathlib import Path
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from yaml import CSafeLoader as SafeLoader
|
from yaml import CSafeLoader as SafeLoader
|
||||||
@ -192,7 +192,7 @@ def main():
|
|||||||
build.subdir = options.subdir
|
build.subdir = options.subdir
|
||||||
build.gradle = ['yes']
|
build.gradle = ['yes']
|
||||||
elif subdir:
|
elif subdir:
|
||||||
build.subdir = str(PurePosixPath(subdir))
|
build.subdir = subdir.as_posix()
|
||||||
build.gradle = ['yes']
|
build.gradle = ['yes']
|
||||||
|
|
||||||
if options.license:
|
if options.license:
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import git
|
import git
|
||||||
from pathlib import Path, PurePosixPath
|
from pathlib import Path
|
||||||
import platform
|
import platform
|
||||||
import re
|
import re
|
||||||
import logging
|
import logging
|
||||||
@ -734,7 +734,7 @@ def parse_metadata(metadatapath):
|
|||||||
"""
|
"""
|
||||||
metadatapath = Path(metadatapath)
|
metadatapath = Path(metadatapath)
|
||||||
app = App()
|
app = App()
|
||||||
app.metadatapath = str(PurePosixPath(metadatapath))
|
app.metadatapath = metadatapath.as_posix()
|
||||||
name = metadatapath.stem
|
name = metadatapath.stem
|
||||||
if name != '.fdroid':
|
if name != '.fdroid':
|
||||||
app.id = name
|
app.id = name
|
||||||
|
Loading…
Reference in New Issue
Block a user