Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building multiple ports fails when port directories have a trailing slash #21

Open
caltry opened this issue Jun 4, 2013 · 1 comment
Assignees
Labels
Milestone

Comments

@caltry
Copy link

caltry commented Jun 4, 2013

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.

@bdrewery
Copy link
Member

bdrewery commented Jun 4, 2013

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

@ghost ghost assigned bdrewery Jun 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants