diff options
Diffstat (limited to 'contrib')
-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" |