# HG changeset patch # User Eric Joseph-Alexandre # Date 1204209349 -3600 # Node ID aed5e37e0662d34b59708b8b86fec6f97b7cb2a8 # Parent 77cd0a789c388c98e39e69f4e042ddccf11cf180 Add: reconfigure command + typo diff -r 77cd0a789c38 -r aed5e37e0662 tazpkg --- a/tazpkg Wed Feb 27 23:43:51 2008 +0100 +++ b/tazpkg Thu Feb 28 15:35:49 2008 +0100 @@ -87,7 +87,7 @@ \033[1mCommands: \033[0m usage Print this short usage. list List installed packages on the system by category or all. - xhtml-list Creat a xHTML list of installed packges. + xhtml-list Creates a xHTML list of installed packges. list-mirror List all available packages on the mirror (--diff for new). info Print informations about the package. desc Print description of a package (if it exist). @@ -100,14 +100,15 @@ extract Extract a (*.tazpkg) package into a directory. pack Pack an unpacked or prepared package tree. recharge Recharge your packages.list from the mirror. - repack Creat a package archive from an installed package. + repack Creates a package archive from an installed package. upgrade Upgrade all installed and listed packages on the mirror. block|unblock Block an installed package version or unblock it for upgrade. get Download a package into the current directory. get-install Download and install a package from the mirror. check Verify installed packages concistancy. clean-cache Clean all packages downloaded in cache directory. - setup-mirror Change the mirror url configuration." + setup-mirror Change the mirror url configuration. + reconfigure Replay post install script from package." } # Status function with color (supported by Ash). @@ -1269,6 +1270,25 @@ fi echo "" ;; + reconfigure) + # Replay post_install from receipt + # + check_for_package_on_cmdline + check_root + if [ -d "$INSTALLED/$PACKAGE" ]; then + check_for_receipt + # Check for post_install + if grep -q ^post_install $INSTALLED/$PACKAGE/receipt; then + . $INSTALLED/$PACKAGE/receipt + post_install + else + echo -e "\nNothing to do for $PACKAGE." + fi + else + echo -e "\npackage $PACKAGE is not installed." + echo -e "Install package with 'tazpkg install' or 'tazpkg get-install'\n" + fi + ;; shell) # Tazpkg SHell #