diff options
author | merakor <cem@ckyln.com> | 2020-10-02 16:09:49 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-10-02 16:09:49 +0000 |
commit | 8bdd9f78b6cbba345d7e26eb99e02ada2078a90a (patch) | |
tree | cd32e2fa769b8d30512a0673cb6dc234f76fbdc8 | |
parent | ae4ac2108b6425f286769edc24997a75405a04ed (diff) | |
download | cpt-8bdd9f78b6cbba345d7e26eb99e02ada2078a90a.tar.gz |
cpt-fork: remove manifest from the package directory
FossilOrigin-Name: 78c900f4fb4a9c0e966791ae37d576723074b09b28d3ae8452cad05a5f534c30
-rwxr-xr-x | contrib/cpt-fork | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/cpt-fork b/contrib/cpt-fork index b50e251..8922f0d 100755 --- a/contrib/cpt-fork +++ b/contrib/cpt-fork @@ -13,4 +13,9 @@ case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pk cpt-search "$1" >/dev/null cp -r "$(cpt-search --single "$1")" . + +# Sometimes forked packages are from the database and not from a repository. +# We should remove the manifest in such a case. +rm -f "$1/manifest" + printf 'forked package to %s\n' "$PWD/$1" |