forked from tranquilit/WAPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a skeleton for package with some potential hooks
load guihelper only if stdin is not the standard one
- Loading branch information
Showing
4 changed files
with
94 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# -*- coding: utf-8 -*- | ||
from setuphelpers import * | ||
|
||
uninstallkey = [] | ||
|
||
def install(): | ||
print('installing %(packagename)s') | ||
# put here what to do when package is installed on host | ||
# implicit context variables are WAPT, basedir, control, user, params, run | ||
|
||
def uninstall(): | ||
print('uninstalling %(packagename)s') | ||
# put here what to do when package is removed from host | ||
# implicit context variables are WAPT, control, user, params, run | ||
|
||
def session_setup(): | ||
print('Session setup for %(packagename)s') | ||
# put here what to do when package is configured inside a user session | ||
# implicit context variables are WAPT, control, user, params | ||
|
||
def update_package(): | ||
print('Update package content from upstream binary sources') | ||
# put here what to do to update package content with newer installers. | ||
# launched with command wapt-get update-package-sources <path-to-wapt-directory> | ||
# implicit context variables are WAPT, basedir, control, user, params, run | ||
# if attributes in control are changed, they should be explicitly saved to package file with control.save_control_to_wapt() | ||
|
||
if __name__ == '__main__': | ||
update_package() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters