_Şimdilik_ bash için gerekli fonksiyonları ekledim. Düzgün ve düzenli hale getireceğim akşam
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
# standard python modules
|
# standard python modules
|
||||||
import os
|
import os
|
||||||
import gzip
|
import gzip
|
||||||
|
import shutil
|
||||||
|
|
||||||
from pisi.util import copy_file
|
from pisi.util import copy_file
|
||||||
|
|
||||||
@@ -71,4 +72,22 @@ def doman(filename):
|
|||||||
copy_file(filename + '.gz',
|
copy_file(filename + '.gz',
|
||||||
os.path.join(destDir,
|
os.path.join(destDir,
|
||||||
os.path.basename(filename)))
|
os.path.basename(filename)))
|
||||||
|
def domove(source, destination):
|
||||||
|
env = glb.env
|
||||||
|
|
||||||
|
try:
|
||||||
|
os.makedirs(env.install_dir + '/' + os.path.dirname(destination))
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
shutil.move(env.install_dir + '/' + source, env.install_dir + '/' + destination)
|
||||||
|
|
||||||
|
def dosym(source, destination):
|
||||||
|
env = glb.env
|
||||||
|
|
||||||
|
try:
|
||||||
|
os.makedirs( env.install_dir + '/' + os.path.dirname(destination))
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
os.symlink(source, env.install_dir + destination)
|
||||||
|
|||||||
Reference in New Issue
Block a user