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

Use python date format code instead of shelling out. #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DanLipsitt
Copy link

This change allows debianize to run on MacOS (and probably other BSD-based platforms). The BSD date command does not have the -R flag previously used by this function.

@DanLipsitt
Copy link
Author

Already pushed the import line fix. Would you like me to squash?

@p1otr
Copy link
Contributor

p1otr commented May 5, 2015

I'd squash it, yes

@DanLipsitt
Copy link
Author

Squashed.

args = [cmd,'-R']
result = get_cmd_stdout(args).strip()
"""return date string in rfc 822 format"""
result = formatdate()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this pass localtime=True to maintain the exact behavior of date -R?

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.

None yet

3 participants