Make query parameter optional for get_pkgfiles()

This commit is contained in:
Eric Torres 2019-01-28 21:27:07 -08:00
parent 5804b1c814
commit 12cf5906a0

View File

@ -7,7 +7,7 @@ PKGEXT = 'pkg.tar.xz'
SIGEXT = f"{PKGEXT}.sig" SIGEXT = f"{PKGEXT}.sig"
# ========== Functions ========== # ========== Functions ==========
def get_pkgfiles(query, directory=None, signatures_only=False): def get_pkgfiles(query=None, directory=None, signatures_only=False):
"""Return a list of package files in the current working directory. """Return a list of package files in the current working directory.
:param query: names of package files to search for :param query: names of package files to search for