Bug 227276

Summary: ports-mgmt/portmaster --clean-packages ignore FLAVOR
Product: Ports & Packages Reporter: hashiz
Component: Individual Port(s)Assignee: Stefan Esser <se>
Status: New ---    
Severity: Affects Some People CC: hashiz, skh1002
Priority: --- Flags: bugzilla: maintainer-feedback? (se)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
fix abobe and more none

Description hashiz 2018-04-04 01:32:31 UTC
Created attachment 192193 [details]
fix abobe and more

Build, install and create package editors/emacs@nox
$ portmaster --packagebuild editors/emacs@nox

Run package cleanup
$ portmaster -y --clean-packages

Then, the latest package file was deleted.
Comment 1 Serge 2018-04-13 00:37:33 UTC
I confirm that this is exactly what happens. For example, I have both 

py27-certifi-2018.1.18 and 
py36-certifi-2018.1.18 

installed and the corresponding packages saved. When I try running 

$ portmaster --clean-packages

I get this prompt:

===>>> Package version: py36-certifi-2018.1.18
       Latest version:  py27-certifi-2018.1.18
	===>>> py36-certifi-2018.1.18.txz matches the installed version
	===>>> Path: /var/ports/packages/All/py36-certifi-2018.1.18.txz

	===>>> Delete stale package: py36-certifi-2018.1.18.txz? y/n [n]

This type of prompt is generated for any flavoured ports that I happen to have installed.