From 8bdd9f78b6cbba345d7e26eb99e02ada2078a90a Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 2 Oct 2020 16:09:49 +0000 Subject: cpt-fork: remove manifest from the package directory FossilOrigin-Name: 78c900f4fb4a9c0e966791ae37d576723074b09b28d3ae8452cad05a5f534c30 --- contrib/cpt-fork | 5 +++++ 1 file changed, 5 insertions(+) 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" -- cgit v1.2.3