diff --git a/slpkg/__metadata__.py b/slpkg/__metadata__.py index 5e959dcb..76dc4099 100644 --- a/slpkg/__metadata__.py +++ b/slpkg/__metadata__.py @@ -159,7 +159,7 @@ class MetaData(object): slpkg_tmp_patches = _conf_slpkg["PATCHES"] checkmd5 = _conf_slpkg["CHECKMD5"] del_all = _conf_slpkg["DEL_ALL"] - del_build = _conf_slpkg["DEL_BUILD"] + del_folder = _conf_slpkg["DEL_BUILD"] sbo_build_log = _conf_slpkg["SBO_BUILD_LOG"] makeflags = _conf_slpkg["MAKEFLAGS"] default_answer = _conf_slpkg["DEFAULT_ANSWER"] diff --git a/slpkg/remove.py b/slpkg/remove.py index 15691dc2..906974a5 100644 --- a/slpkg/remove.py +++ b/slpkg/remove.py @@ -40,5 +40,5 @@ def delete_package(path, packages): def delete_folder(folder): """Delete folder with all files. """ - if _meta_.del_build in ["on", "ON"] and os.path.exists(folder): + if _meta_.del_folder in ["on", "ON"] and os.path.exists(folder): shutil.rmtree(folder)