Comments (4)
Well I think that for consistency's sake there are two options:
- install/keep
- don't install/remove
Either way, you should get a warning.
Removing/not installing the package seems to be the better solution because the package shouldn't have a purpose and is therefore a mistake in the configuration.
If the user needs the package even though no packages depend on it then that package is not a dependency and should be explicitly installed.
from aconfmgr.
Let's assume hypothetically that AddPackage --asdeps
is added to aconfmgr, and you add a package in that way to your configuration.
-
What do you expect to happen when you run
aconfmgr apply
, and that package is not installed on the system, nor is it required by any other package in your configuration? -
What do you expect to happen when you run
aconfmgr apply
, and that package is installed on the system, but it is not required by any other package in your configuration?
from aconfmgr.
I'd like this - aconfmgr
doing something sensible with it would actually make --asdeps
more useful to me than it is today.
from aconfmgr.
I think this makes sense on paper, but it would make certain aspects of aconfmgr's implementation much more complicated.
For now, I suggest a pragmatic approach: place each instance of such a dependency beneath its main package in the configuration file (along with said package's other configuration). When you no longer need the main package, you would also remove the dependency.
It is valid to specify a package more than once, so the dependency can be specified as often as necessary.
from aconfmgr.
Related Issues (20)
- GetPackageOriginalFile errors bsdtar: Error opening archive: Unrecognized archive format HOT 3
- FatalError with trace, no specific information, --verbose does nothing HOT 30
- /tmp/aconfmgr-$USER is created with world-readable permissions HOT 6
- Shell Script Syntax HOT 3
- package `expect` gets installed and uninstalled on every run of `aconfmgr apply` HOT 2
- Getting prompted about `Restoring a52dec file /usr/bin...` HOT 14
- Inline fstab entry without saving or overwriting genfstab-generated portion? HOT 3
- Target a different installation than the one on / HOT 3
- documentation for IgnorePath syntax HOT 2
- factoring out base group? HOT 1
- [Bug]: Inconsistent ownership of /usr/lib/node_modules HOT 3
- [Bug]: Changed file duplicates `CopyFile` in 99-unsorted HOT 2
- [Bug]: Insecure permissions for file copies HOT 1
- Glitches out with --yes HOT 6
- Duplicate "provides" packages are not uninstalled HOT 1
- [Bug]: Some symlinks don't work HOT 2
- Weird behaviour on Arch Linux 32: Asking for overwriting files with no changes HOT 10
- Inline editing with `CopyFile` ?
- Incorrect modes on files after change
- Filename-based ignores? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aconfmgr.