Comments (4)
I believe this is also causing trouble for anyone using Chef (it certainly is for my org).
from pkgin.
I've worked around this in pkgsrc ansible for now, so that we have a working ansible package for 2015Q2:
http://mail-index.netbsd.org/pkgsrc-changes/2015/06/25/msg126311.html
As this pkgin behaviour has been in a few branches now I think we have no choice but to support both types of output in programs that parse it, as I've done above. However I'd still like to see this fixed as it's bound to catch other people out when they switch from e.g. pkgin list
to pkgin list | grep ...
and wonder why the output changed.
It's also worth noting that ';' as a delimiter isn't ideal, as there are a few packages which include semicolons in their COMMENT
field:
$ git grep "^COMMENT=[^#]*\;"
chat/gg2/Makefile:COMMENT= Instant messenger software for Poland; Jabber plugin included
devel/bcc/Makefile:COMMENT= Bruce Evans' C compiler (with as and ld); can do 16-bit code
devel/p5-Dist-Zilla/Makefile:COMMENT= Perl 5 module distribution builder; installer not included
games/crossfire-client-gtk/Makefile:COMMENT= Multi-player graphical arcade and adventure game; GTK client
games/crossfire-client-gtk2/Makefile:COMMENT= Multi-player graphical arcade and adventure game; GTK2 client
games/crossfire-client/Makefile:COMMENT= Multi-player graphical arcade and adventure game; X11 client
graphics/tkpiechart/Makefile:COMMENT= Tcl/Tk pie-chart utility; in Tcl, not as an extension
security/hs-digest/Makefile:COMMENT= Various cryptographic hashes for bytestrings; CRC32 and Adler32
security/libssh/Makefile:COMMENT= SSHv2+v1 protocol library; libssh.org version ${VER}
www/bozohttpd/Makefile:COMMENT= Bozotic HTTP server; small and secure
x11/xless/Makefile:COMMENT= X11 text viewer; useful as an add-on tool for other apps
so anything which does split(';') or similar is not guaranteed the same size output array each time.
from pkgin.
Fixed in 1f9e65f and released in 0.9.0 (now in pkgsrc).
from pkgin.
super nice! thanks!
from pkgin.
Related Issues (20)
- "upgrade" does not warn about missing packages in repo HOT 3
- partial upgrades are confusing, and man page does not explain what upgrade means HOT 7
- verbose mode is completely wrong
- Category parsing needs to be improved
- Multiple users running install at the same time corrupts the pkgin database
- Incorrect version comparison logic HOT 2
- pkgin struggling with nodejs's multiple version HOT 5
- pkgin should allow user prioritizing of pkg_summary archive formats HOT 2
- deinstall does not order packages correctly HOT 8
- inconsistency in output HOT 7
- pkgin leaks memory quadratically HOT 1
- Upgrade will install unnecessary packages HOT 7
- ohloh thin badge does not load on pkgin website HOT 1
- 'pkgin rm *' behaves unexpectedly HOT 6
- Download packages in parallel
- Dependent packages should only be upgraded once HOT 2
- [Feature Request] Add retry when download fails during install
- man page nits HOT 2
- configure.ac wrongly checks for header files in build environment
- pkgin fug should print a warning about deprecation HOT 3
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 pkgin.