aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-10-02 16:09:49 +0000
committermerakor <cem@ckyln.com>2020-10-02 16:09:49 +0000
commit8bdd9f78b6cbba345d7e26eb99e02ada2078a90a (patch)
treecd32e2fa769b8d30512a0673cb6dc234f76fbdc8
parentae4ac2108b6425f286769edc24997a75405a04ed (diff)
downloadcpt-8bdd9f78b6cbba345d7e26eb99e02ada2078a90a.tar.gz
cpt-fork: remove manifest from the package directory
FossilOrigin-Name: 78c900f4fb4a9c0e966791ae37d576723074b09b28d3ae8452cad05a5f534c30
-rwxr-xr-xcontrib/cpt-fork5
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"