updated and fix man path

This commit is contained in:
dslackw 2014-05-09 22:54:21 +03:00
parent c07ef3bc2e
commit b2d6a65246
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
10-05-2014
Version 1.0.2
[Updated] - setup.py file
[Updated] - man page slpkg.8 added gziped
09-05-2014
Version 1.0.1

View file

@ -28,10 +28,10 @@ setup(
)
if 'install' in sys.argv:
man_path = "/usr/man/man8"
man_path = "/usr/man/man8/"
os.system("mkdir -p {}".format(man_path))
if os.path.exists(man_path):
print("Installing man pages")
man_page = "man/slpkg.8"
shutil.copy2(man_page, man_path)
os.chmod(man_path + 'slpkg.8', int('444', 8))
os.chmod(man_path + 'slpkg.8.gz', int('444', 8))