Group :: Monitoramento
RPM: nmap
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: nmap-5.51-rh-zenmap-locale.patch
Download
Download
--- nmap/zenmap/setup.py
+++ nmap/zenmap/setup.py
@@ -112,7 +112,7 @@ INSTALLED_FILES_NAME = "INSTALLED_FILES"
# These directories are relative to the installation or dist directory
data_dir = os.path.join('share', APP_NAME)
pixmaps_dir = os.path.join(data_dir, 'pixmaps')
-locale_dir = os.path.join(data_dir, 'locale')
+locale_dir = os.path.join('share', 'locale')
config_dir = os.path.join(data_dir, 'config')
docs_dir = os.path.join(data_dir, 'docs')
misc_dir = os.path.join(data_dir, 'misc')
@@ -217,8 +217,8 @@ class my_install(install):
installed_files.append(os.path.join(self.install_lib, dir))
# Recursively include all the directories in data_dir (share/zenmap).
# This is mainly for convenience in listing locale directories.
- installed_files.append(os.path.join(self.install_data, data_dir))
- for dirpath, dirs, files in os.walk(os.path.join(self.install_data, data_dir)):
+ installed_files.append(os.path.join(self.install_data, "share"))
+ for dirpath, dirs, files in os.walk(os.path.join(self.install_data, "share")):
for dir in dirs:
installed_files.append(os.path.join(dirpath, dir))
installed_files.append(os.path.join(self.install_scripts, "uninstall_" + APP_NAME))
--- nmap/zenmap/zenmapCore/Paths.py
+++ nmap/zenmap/zenmapCore/Paths.py
@@ -122,7 +122,7 @@ prefix = get_prefix()
# These lines are overwritten by the installer to hard-code the installed
# locations.
CONFIG_DIR = join(prefix, "share", APP_NAME, "config")
-LOCALE_DIR = join(prefix, "share", APP_NAME, "locale")
+LOCALE_DIR = join(prefix, "share", "locale")
MISC_DIR = join(prefix, "share", APP_NAME, "misc")
PIXMAPS_DIR = join(prefix, "share", "zenmap", "pixmaps")
DOCS_DIR = join(prefix, "share", APP_NAME, "docs")