Fix remnants of old usage hardcoding to SCRIPT_DIR
This commit is contained in:
parent
69e9751be9
commit
616f82e469
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ import shutil
|
||||||
import getpass
|
import getpass
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
|
#SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
|
||||||
SUDO_PROC = False
|
SUDO_PROC = False
|
||||||
AUR_GIT_REPO_PATH = "https://aur.archlinux.org"
|
AUR_GIT_REPO_PATH = "https://aur.archlinux.org"
|
||||||
AUR_GIT_REPO_PATH_TEMPLATE = AUR_GIT_REPO_PATH + "/{}.git"
|
AUR_GIT_REPO_PATH_TEMPLATE = AUR_GIT_REPO_PATH + "/{}.git"
|
||||||
|
@ -761,7 +761,7 @@ def update_pkg_list(
|
||||||
pkg_state[pkg]["build_status"] = "success"
|
pkg_state[pkg]["build_status"] = "success"
|
||||||
continue
|
continue
|
||||||
|
|
||||||
pkg_list = glob.glob(os.path.join(SCRIPT_DIR, pkg, "*.pkg.tar*"))
|
pkg_list = glob.glob(os.path.join(other_state['clonesdir'], pkg, "*.pkg.tar*"))
|
||||||
|
|
||||||
log_print("Signing package...")
|
log_print("Signing package...")
|
||||||
for gpkg in pkg_list:
|
for gpkg in pkg_list:
|
||||||
|
@ -781,7 +781,7 @@ def update_pkg_list(
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
command_list,
|
command_list,
|
||||||
check=True,
|
check=True,
|
||||||
cwd=os.path.join(SCRIPT_DIR, pkg),
|
cwd=os.path.join(other_state['clonesdir'], pkg),
|
||||||
input=signing_gpg_pass,
|
input=signing_gpg_pass,
|
||||||
text=True,
|
text=True,
|
||||||
env={"GNUPGHOME": signing_gpg_dir},
|
env={"GNUPGHOME": signing_gpg_dir},
|
||||||
|
|
Loading…
Reference in a new issue