Skip to content

Correctly get apt dirs in debian postinst#35535

Merged
Tyriar merged 1 commit intomicrosoft:masterfrom
julian-klode:debian-postinst-apt-config-cleanup
Oct 4, 2017
Merged

Correctly get apt dirs in debian postinst#35535
Tyriar merged 1 commit intomicrosoft:masterfrom
julian-klode:debian-postinst-apt-config-cleanup

Conversation

@julian-klode
Copy link
Contributor

This previously used some crazy hack to parse the output of
apt-config dump, instead of using apt-config shell like
you are supposed to do.

This previously used some crazy hack to parse the output of
`apt-config dump`, instead of using `apt-config shell` like
you are supposed to do.
@julian-klode
Copy link
Contributor Author

foo/d and foo/f lookup file paths following the hierarchy. /d adds a trailing directory separator, /f does not. The old code was a crude hack that would fail as soon as any component was an absolute path.

@Tyriar Tyriar added this to the October 2017 milestone Oct 4, 2017
@Tyriar
Copy link
Member

Tyriar commented Oct 4, 2017

Thanks for this @julian-klode, seems to work great

@Tyriar Tyriar merged commit 0c30958 into microsoft:master Oct 4, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants