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

Ignore if .fmf dir exists. #47

Closed
wants to merge 1 commit into from
Closed

Ignore if .fmf dir exists. #47

wants to merge 1 commit into from

Conversation

ssahani
Copy link

@ssahani ssahani commented Sep 6, 2018

Closes #37

@psss psss self-assigned this Sep 24, 2018
@psss
Copy link
Collaborator

psss commented Sep 24, 2018

Suggested code does not handle the conflict for existing directory:

> fmf init
Metadata tree '/tmp/exists/.fmf' successfully initialized.
> fmf init
Metadata tree '/tmp/exists/.fmf' successfully initialized.

And for existing file it does not work at all:

> rm -rf .fmf
> touch .fmf
> fmf init
Traceback (most recent call last):
  File "/usr/bin/fmf", line 35, in <module>
    fmf.cli.main()
  File "/usr/lib/python2.7/site-packages/fmf/cli.py", line 198, in main
    parser = Parser(arguments, path)
  File "/usr/lib/python2.7/site-packages/fmf/cli.py", line 73, in __init__
    getattr(self, "command_" + self.command)()
  File "/usr/lib/python2.7/site-packages/fmf/cli.py", line 146, in command_init
    if error.errno != errno.EEXIST:
NameError: global name 'errno' is not defined

Have you run it?

@psss
Copy link
Collaborator

psss commented Sep 24, 2018

I have fixed the issue in 364cf81.

@psss psss closed this Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants