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 APT comment syntax for older APT versions (instead of just not configuring them) #59

Merged
merged 1 commit into from Apr 11, 2019

Conversation

tianon
Copy link
Collaborator

@tianon tianon commented Apr 11, 2019

It turns out that support for apt.conf comments of the style # xxx was added in 0.7.22 (https://salsa.debian.org/apt-team/apt/commit/81e9789b12374073e848c73c79e235f82c14df44), and that I was incorrect in simply assuming that these configuration options were making this script blow up on really old APT versions!

This adds (and uses) a script that will rewrite # ... to // ... for APT versions that are old enough to need it. I've tested it successfully as far back as Debian Potato!

@tianon
Copy link
Collaborator Author

tianon commented Apr 11, 2019

(This one is mostly indentation changes, so definitely easier to look at via https://github.com/debuerreotype/debuerreotype/pull/59/files?w=1)

…nfiguring them)

It turns out that support for `apt.conf` comments of the style `# xxx` was added in 0.7.22 (https://salsa.debian.org/apt-team/apt/commit/81e9789b12374073e848c73c79e235f82c14df44), and that I was incorrect in simply assuming that these configuration options were making this script blow up on really old APT versions!

This adds (and uses) a script that will rewrite `# ...` to `// ...` for APT versions that are old enough to need it.  I've tested it successfully as far back as Debian Potato!
- SUITE=eol CODENAME=etch TIMESTAMP=2017-01-01T00:00:00Z SHA256=7f4914c6b46782741dd69cebba2072388693613f87748e3b6b527ece264fdf4a
- SUITE=eol CODENAME=woody ARCH=i386 TIMESTAMP=2017-01-01T00:00:00Z SHA256=562f93014c37d00fb49d49f866ef63012048ccd7b9ef6df3cb692dfc59d5d105
- SUITE=eol CODENAME=etch TIMESTAMP=2017-01-01T00:00:00Z SHA256=eb005e297101b8e4555a08e96395fa0575cbdddf4901a081948b17a4039939bd
- SUITE=eol CODENAME=woody ARCH=i386 TIMESTAMP=2017-01-01T00:00:00Z SHA256=46a1330121271abd01e107a886b7f85ce72edb0ae9fdf9c139562dc0fba806b1
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These changed because they now get the apt.conf files! 💪

@tianon tianon merged commit 027b65f into debuerreotype:master Apr 11, 2019
@tianon tianon deleted the fix-apt-conf-comments branch April 11, 2019 03:36
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

1 participant