portmaster icon indicating copy to clipboard operation
portmaster copied to clipboard

Building multiple ports fails when port directories have a trailing slash

Open caltry opened this issue 12 years ago • 1 comments

When installing multiple ports by specifying their paths in /usr/ports, portmaster (version 3.16) doesn't count ports that have trailing slashes:

# portmaster -n www/lighttpd/ devel/git/

===>>> Working on:
        www/lighttpd/
        devel/git/


===>>> www/lighttpd/ 1/2
===>>> Gathering distinfo list for installed ports


===>>> Port directory: /usr/ports/www/lighttpd

===>>> Gathering dependency list for www/lighttpd from ports
===>>> Initial dependency check complete for www/lighttpd


===>>> devel/git/ 2/1

===>>> Currently installed version: git-1.8.2.3
===>>> Port directory: /usr/ports/devel/git

===>>> Gathering dependency list for devel/git from ports
===>>> Initial dependency check complete for devel/git


===>>> Total ports: 0

If I remove the trailing slash from one of the arguments, that port does get counted and is properly added to the queue:

# portmaster -n www/lighttpd/ devel/git 

===>>> Working on:
        www/lighttpd/
        devel/git


===>>> www/lighttpd/ 1/2
===>>> Gathering distinfo list for installed ports


===>>> Port directory: /usr/ports/www/lighttpd

===>>> Gathering dependency list for www/lighttpd from ports
===>>> Initial dependency check complete for www/lighttpd


===>>> devel/git 2/1

===>>> Currently installed version: git-1.8.2.3
===>>> Port directory: /usr/ports/devel/git

===>>> Gathering dependency list for devel/git from ports
===>>> Initial dependency check complete for devel/git


===>>> Total ports: 1

===>>> Starting build for multiple ports <<<===


===>>> devel/git 1/1

===>>> Currently installed version: git-1.8.2.3
===>>> Port directory: /usr/ports/devel/git

===>>> Killing background jobs
Terminated
===>>> Exiting

When it starts, it seems to be aware that there are two ports to install, but the trailing slash is throwing off the accounting somewhere. The trailing slash is automatically added by bash's auto-completion, so it'd be convenient if I could leave it on.

caltry avatar Jun 04 '13 16:06 caltry

Thanks for reporting. Will include a fix in next release.

bdrewery avatar Jun 04 '13 17:06 bdrewery