Do minor refactoring

This commit is contained in:
Stephen Seo 2022-06-03 13:32:49 +09:00
parent d66261cf4a
commit 9dfd6d5040

View file

@ -312,7 +312,7 @@ def get_srcinfo_version(pkgdir):
def get_pkgbuild_version(pkgdir, force_check_srcinfo): def get_pkgbuild_version(pkgdir, force_check_srcinfo):
"""Returns (success, epoch, version, release)""" """Returns (success, epoch, version, release)"""
log_print('Getting PKGBUILD version of "{}"...'.format(pkgdir)) log_print(f'Getting version of "{pkgdir}"...')
while True and not force_check_srcinfo: while True and not force_check_srcinfo:
log_print("Use .SRCINFO or directly parse PKGBUILD?") log_print("Use .SRCINFO or directly parse PKGBUILD?")
user_input = input("1 for .SRCINFO, 2 for PKGBUILD > ") user_input = input("1 for .SRCINFO, 2 for PKGBUILD > ")