Summary: | symlinks for managing sources.list.d/ (on/off) | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> |
Component: | apt-conf-sisyphus | Assignee: | placeholder <placeholder> |
Status: | NEW --- | QA Contact: | qa-sisyphus |
Severity: | enhancement | ||
Priority: | P2 | CC: | glebfm, ldv, placeholder |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
Ivan Zakharyaschev
2008-12-06 05:58:38 MSK
Even if the second part of the suggestion is not implemented (/etc/apt/available-sources.list.d/selected-branch -> /etc/apt/available-sources.list.d/Sisyphus/), then the suggested approach still gives an advantage of easy switching between branches: apt-conf-whatever contains all the possible URLs for the selected branch in /etc/apt/available-sources.list.d/* . You choose some of the sites by putting a symlink to /etc/apt/sources.list.d/ , say: /etc/apt/sources.list.d/alt_ftp.list -> /etc/apt/available-sources.list.d/alt_ftp.list . Then switching to another branch is as easy as installing another apt-conf-aBranch package: it will replace the contents of /etc/apt/available-sources.list.d/*, but your symlink /etc/apt/sources.list.d/alt_ftp.list will still be valid and working. (Compare this one action to the current process for switching to another branch: 1) install another apt-conf-aBranch; 2) merge the new files with your old uncommented ones (inconvenient!).) I'd even prefer this second way of making the switching of branches easier, because it's simpler and clearer, than the initial suggestion of stacked symlinks. (In reply to comment #1) > . Then switching to another branch is as easy as installing another apt-conf-aBranch package: it will replace the contents of > /etc/apt/available-sources.list.d/*, but your symlink /etc/apt/sources.list.d/alt_ftp.list will still be valid and working. |