FreeBSD Port: ports-mgmt/poudriere
Bryan Drewery
bdrewery at FreeBSD.org
Mon Aug 29 23:29:46 UTC 2016
On 8/29/2016 4:27 PM, Don Lewis wrote:
> On 30 Aug, Miroslav Lachman wrote:
>> Hi,
>>
>> I would like to report one "dangerous" problem with "poudriere ports -d"
>> command. There should be a "-p treename" but if it is omitted, poudriere
>> deletes tree "default"
>>
>> This is my error, I know, but I think poudrier should print a warning or
>> do not assume I wanted delete "default"
>>
>> root at sm-reserve ~/# poudriere ports -d headtest
I did add a confirmation into jail -d. I will extend it to ports -d as
well.
>> [00:00:00] ====>> Deleting portstree "default" done
>>
>> It should be
>>
>> root at sm-reserve ~/# poudriere ports -d -p headtest
>> [00:00:00] ====>> Deleting portstree "headtest" done
>
> Yeah, that bit me too. The poudriere man page even says:
>
> Except for -l, all of the subcommands require the -p switch (see
> below).
>
> Even worse in my case, it deleted a ports tree that was not even created
> by poudriere. My default ports tree is actually /usr/ports and I hooked
> it into poudrire by doing something like:
> poudriere ports -c -p default -F -M /usr/ports
>
This is a separate bug.
> IMHO, if the ports tree was not created by poudriere, then -k should be
> the default when deleting it.
>
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160829/40c22524/attachment.sig>
More information about the freebsd-ports
mailing list