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

Fixed regex to follow APT requirements #298

Merged
merged 1 commit into from
May 22, 2014
Merged

Fixed regex to follow APT requirements #298

merged 1 commit into from
May 22, 2014

Conversation

frconil
Copy link

@frconil frconil commented May 19, 2014

Previous implementation would overwrite the file name and potentially include characters that would cause apt to ignore the pref file.

What would happen is that $path would use $name by default.
Then the regex would generate a valid $file_name, then ignore completely by using previously set $path, allowing forbidden characters in the file name.

Previous implementation would overwrite the file name and
potentially include characters that would cause apt to ignore
the pref file
@daenney
Copy link

daenney commented May 19, 2014

Still need tests on this.

@frconil
Copy link
Author

frconil commented May 19, 2014

Hi,

I'm not quite sure what kind of test you would require? Do you need to test on the generated file name, on whether non-accepted characters get replaced?

I assumed the current tests already covered it, hence my relying on the travis build.

@daenney
Copy link

daenney commented May 19, 2014

Oh you're right, we already had some specs covering this and nothing broke. I think I'm good, @apenney.

apenney pushed a commit that referenced this pull request May 22, 2014
Fixed regex to follow APT requirements
@apenney apenney merged commit 81ff5f8 into puppetlabs:master May 22, 2014
@frconil frconil deleted the fix-apt-pin-regex branch May 22, 2014 22:32
@LukasAud LukasAud added the bugfix label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants