GithubHelp home page GithubHelp logo

Comments (4)

bixu avatar bixu commented on July 20, 2024

I believe this is also causing trouble for anyone using Chef (it certainly is for my org).

from pkgin.

jperkin avatar jperkin commented on July 20, 2024

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.

jperkin avatar jperkin commented on July 20, 2024

Fixed in 1f9e65f and released in 0.9.0 (now in pkgsrc).

from pkgin.

bixu avatar bixu commented on July 20, 2024

super nice! thanks!

from pkgin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.