tazpkg view modules/reconfigure @ rev 844
Finish modularization. Beta release: still have few FIXMEs and TODOs.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Oct 05 03:53:47 2015 +0300 (2015-10-05) |
parents | |
children | 8a73a58ed3cb |
line source
1 #!/bin/sh
2 # TazPkg - Tiny autonomous zone packages manager, hg.slitaz.org/tazpkg
3 # reconfigure - TazPkg module
4 # Replay post_install from receipt
7 # Connect function libraries
8 . /lib/libtaz.sh
10 # Get TazPkg working environment
11 . @@MODULES@@/getenv
16 PACKAGE="$1"
18 # Check for post_install
19 if grep -q ^post_install "$INSTALLED/$PACKAGE/receipt"; then
20 . "$INSTALLED/$PACKAGE/receipt"
21 post_install "$root"
22 # Log this activity
23 tazpkg call log_pkg Reconfigured
24 else
25 newline
26 _ 'Nothing to do for package "%s".' "$PACKAGE"
27 fi