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:
parent
b445b83fd3
commit
e6590dd285
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue