Comments (3)
You're right, I suppose the right approach is to add the ; at the end, but it would be even better, also for backwards compatibility, to check if there's the ; and the end and add it only when necessary.
from puppet-apt.
Am Mi 09 Jan 2013 18:38:34 CET schrieb Alessandro Franceschi:
You're right, I suppose the right approach is to add the ; at the end,
but it would be even better, also for backwards compatibility, to
check if there's the ; and the end and add it only when necessary.—
Reply to this email directly or view it on GitHub
#6 (comment).
I'm still fairly new to puppet. Can you point me to how to do it, and
I'll prepare a PR.
from puppet-apt.
I've checked if there's some of the native functions.
You might try to use http://docs.puppetlabs.com/references/latest/function.html#regsubst to remove the trailing ; , if present, and then add it for all the cases.
from puppet-apt.
Related Issues (15)
- Dependency cycle when adding repository HOT 2
- support multiple packages per apt::pin definition HOT 3
- dependency cycle HOT 2
- Can`t update sources.list file HOT 5
- Adding support for PPA HOT 4
- apt-pinning syntax error HOT 4
- Repository class should allow specifying keyserver HOT 5
- Needs more documentation
- apt::dater: Lack of support for apt-dater 1.0.2+ XML configuration files HOT 1
- Unattended-Upgrade, is it removed or replaced? HOT 5
- apt::dater: Parameter path failed on File[undef] HOT 4
- subkeys.pgp.net not responding? HOT 5
- Each time puppet seems to run the apt key and ppa get's added over and over? HOT 12
- apt-dater URL returns 404
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 puppet-apt.