From 3bb459b493faf6dd00d0a50a3e71a988a43ed375 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 29 Dec 2008 16:22:55 +0100 Subject: [PATCH] Improve BINPKG_INFO/REPOSITORY doc files. --HG-- extra : convert_revision : 7a09f2d04e98d26d13b6a632e3c91eabe61af341 --- doc/BINPKG_INFO | 7 ++++--- doc/BINPKG_REPOSITORY | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/BINPKG_INFO b/doc/BINPKG_INFO index 0dfc9173fe1..ef918d87d82 100644 --- a/doc/BINPKG_INFO +++ b/doc/BINPKG_INFO @@ -56,9 +56,10 @@ has the following structure: ... -This plist might be extended in the future; additional scripts might be -added to trigger actions at pre/post installation/removal of the -binary package. +The prepost-action is an executable script/command that allows you to +trigger any action at pre/post installation/removal of the binary +package. If return value is not 0, the package won't be registered into +the database. The package's dictionary will also be written into the repository's package index file, that describes information about a binary package on it. diff --git a/doc/BINPKG_REPOSITORY b/doc/BINPKG_REPOSITORY index 74b52a452ff..c4381cc4196 100644 --- a/doc/BINPKG_REPOSITORY +++ b/doc/BINPKG_REPOSITORY @@ -67,13 +67,13 @@ Here's how the package index plist file shall look like in a repository: To build binary packages from all currently installed packages in XBPS_MASTERDIR: - $ xbps-src.sh build-pkg all + $ xbps-src build-pkg all To generate the repository package index in default location XBPS_PACKAGESDIR (an additional path can be specified for another alternate location): - $ xbps-src.sh genindex + $ xbps-src genindex After this you can add your own local repository with binary packages: