mirror of
https://github.com/Foltik/dotfiles
synced 2025-02-25 17:00:07 -05:00
Add configure stub methods
This commit is contained in:
parent
8d2657ac8f
commit
d099c1d1d8
@ -1,5 +1,29 @@
|
|||||||
|
import os
|
||||||
from subprocess import call
|
from subprocess import call
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from lib.parse import Package
|
from lib.parse import Package
|
||||||
|
|
||||||
|
def install(package):
|
||||||
|
if not package.source:
|
||||||
|
return
|
||||||
|
|
||||||
|
def copy_config(package):
|
||||||
|
if not package.config:
|
||||||
|
return
|
||||||
|
|
||||||
|
def run_script(package):
|
||||||
|
if not package.script:
|
||||||
|
return
|
||||||
|
|
||||||
|
def enable_units(package):
|
||||||
|
if not package.userunits:
|
||||||
|
return
|
||||||
|
|
||||||
def configure(package):
|
def configure(package):
|
||||||
pass
|
print(vars(package))
|
||||||
|
install(package)
|
||||||
|
copy_config(package)
|
||||||
|
run_script(package)
|
||||||
|
enable_units(package)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user