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

fix make obs-workdir target #25

Merged
merged 6 commits into from
Mar 23, 2020

Conversation

stefanotorresi
Copy link
Collaborator

@stefanotorresi stefanotorresi commented Mar 23, 2020

This PR makes a few changes on how the make obs-workdir target works.

It now uses the HEAD reference as a default VERSION environment variable, and it now allows to also change the REPOSITORY variable to make the OBS tar_scm source service fetch the sources from a different repository than the main upstream.

Making OBS commits for Git feature branches on OBS branch packages is now documented in the development notes.

fixes #17

go.mod Show resolved Hide resolved
Makefile Show resolved Hide resolved
Copy link
Contributor

@MalloZup MalloZup left a comment

Choose a reason for hiding this comment

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

is the print(f a feature or typo?

@MalloZup
Copy link
Contributor

MalloZup commented Mar 23, 2020

@stefanotorresi thx. I think the printf format can be converted with format function.

'{1} {0}'.format('one', 'two')

@stefanotorresi
Copy link
Collaborator Author

stefanotorresi commented Mar 23, 2020

@MalloZup I used f-strings throughout the whole script! I don't see any compelling technical reason to change that now, to be honest. In fact, since the f-strings were introduced in Python, the best practice is to use those instead of str.format.

Copy link
Contributor

@MalloZup MalloZup left a comment

Choose a reason for hiding this comment

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

ok. thx @stefanotorresi . Sarcastic mode oN: I guess python is not made for entreprise software.

I think I never discovered in my life a language that during is lifetyime has changed so many time useless syntax for printing

@MalloZup MalloZup merged commit b675fa4 into SUSE:master Mar 23, 2020
@stefanotorresi stefanotorresi deleted the fix/make-obs-workdir branch March 23, 2020 17:51
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.

fix make obs-workdir target
2 participants