Rename binpkg's metadata script to prepost-action.

Because in theory any shell script or executable program might run,
and therefore the .sh extension is wrong.

--HG--
extra : convert_revision : 2f52520ccb04cdf1c414ee0ac6128e54d82c1d36
This commit is contained in:
Juan RP 2008-12-29 06:50:59 +01:00
parent b445b83fd3
commit e6590dd285
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ with bzip2 and has the following structure:
/var/cache/xbps/metadata/$pkgname
/var/cache/xbps/metadata/$pkgname/flist
/var/cache/xbps/metadata/$pkgname/props.plist
/var/cache/xbps/metadata/$pkgname/postpre-action.sh
/var/cache/xbps/metadata/$pkgname/postpre-action
Metadata info is stored in the "/var/cache/xbps/metadata/$pkgname"
directory and two files will be always be present: flist and props.plist.

View file

@ -278,12 +278,12 @@ xbps_unpack_archive_cb(struct archive *ar, const char *pkgname)
* This length is '.%s/metadata/%s/prepost-action.sh' not
* including nul.
*/
len = strlen(XBPS_META_PATH) + strlen(pkgname) + 29;
len = strlen(XBPS_META_PATH) + strlen(pkgname) + 26;
buf = malloc(len + 1);
if (buf == NULL)
return ENOMEM;
if (snprintf(buf, len + 1, ".%s/metadata/%s/prepost-action.sh",
if (snprintf(buf, len + 1, ".%s/metadata/%s/prepost-action",
XBPS_META_PATH, pkgname) < 0) {
free(buf);
return -1;