pisi-cli install paket-adi.pisi şu anda çalışıyor.
birazdan comar betiklerinin de teker teker register edilmesi hadisesi için girişeceğim. kazamız mübarek olsun arkadaşlar. - bacinizin bidiği
This commit is contained in:
+7
-2
@@ -48,6 +48,12 @@ def get_pkg_info(package_fn):
|
|||||||
|
|
||||||
return metadata, files
|
return metadata, files
|
||||||
|
|
||||||
|
def extract_pkg_files(package_fn):
|
||||||
|
package = Package(package_fn, 'r')
|
||||||
|
|
||||||
|
ui.info('Extracting files\n')
|
||||||
|
package.extract_dir_flat('install', config.destdir)
|
||||||
|
|
||||||
|
|
||||||
def remove(package_name):
|
def remove(package_name):
|
||||||
"""Remove a goddamn package"""
|
"""Remove a goddamn package"""
|
||||||
@@ -117,8 +123,7 @@ def install(package_fn):
|
|||||||
remove(package.name)
|
remove(package.name)
|
||||||
|
|
||||||
# unzip package in place
|
# unzip package in place
|
||||||
ui.info('Extracting files\n')
|
extract_pkg_files(package_fn)
|
||||||
package.extract_dir_flat('install', config.destdir)
|
|
||||||
|
|
||||||
# TODO: put files.xml, metadata.xml, actions.py and COMAR scripts
|
# TODO: put files.xml, metadata.xml, actions.py and COMAR scripts
|
||||||
# somewhere in the file system. We'll need these in future...
|
# somewhere in the file system. We'll need these in future...
|
||||||
|
|||||||
Reference in New Issue
Block a user