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
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ with bzip2 and has the following structure:
|
||||||
/var/cache/xbps/metadata/$pkgname
|
/var/cache/xbps/metadata/$pkgname
|
||||||
/var/cache/xbps/metadata/$pkgname/flist
|
/var/cache/xbps/metadata/$pkgname/flist
|
||||||
/var/cache/xbps/metadata/$pkgname/props.plist
|
/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"
|
Metadata info is stored in the "/var/cache/xbps/metadata/$pkgname"
|
||||||
directory and two files will be always be present: flist and props.plist.
|
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
|
* This length is '.%s/metadata/%s/prepost-action.sh' not
|
||||||
* including nul.
|
* including nul.
|
||||||
*/
|
*/
|
||||||
len = strlen(XBPS_META_PATH) + strlen(pkgname) + 29;
|
len = strlen(XBPS_META_PATH) + strlen(pkgname) + 26;
|
||||||
buf = malloc(len + 1);
|
buf = malloc(len + 1);
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
return ENOMEM;
|
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) {
|
XBPS_META_PATH, pkgname) < 0) {
|
||||||
free(buf);
|
free(buf);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue