Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment values with spaces #6

Closed
AladW opened this issue Mar 17, 2016 · 3 comments
Closed

Increment values with spaces #6

AladW opened this issue Mar 17, 2016 · 3 comments

Comments

@AladW
Copy link

AladW commented Mar 17, 2016

The man page says

setconf my.conf x=1
Sets x to 1 in my.conf, even if my.conf uses a different assignment,
like x := 42, x : 42, x == 42, x :: 42 or x => 42.

My question is, how can I make this work with variable increments? For example, setconf pkgver+=1 PKGBUILD works, but setconf .SRCINFO pkgver+=1 sets pkgver to 1, instead of incrementing it. Example .SRCINFO file:

pkgbase = ldm
    pkgdesc = A lightweight device mounter
    pkgver = 0.7
    pkgrel = 2
    url = https://github.com/LemonBoy/ldm
    install = ldm.install
    arch = i686
    arch = x86_64
    arch = armv7h
    license = MIT
    depends = udev
    depends = util-linux
    depends = glib2
    provides = ldm
    conflicts = ldm-git
    source = ldm-0.7.tar.gz::http://github.com/lemonboy/ldm/archive/v0.7.tar.gz
    sha256sums = fb464bffec5b7d0680009b43a95881e8c02ec07e84d6f7fb05206d666dc44bdb

pkgname = ldm

Using setconf from master a080bdc

@xyproto
Copy link
Owner

xyproto commented Mar 17, 2016

Thanks for reporting! I will look into this.

@xyproto
Copy link
Owner

xyproto commented Mar 19, 2016

Fixed! Please test.

@xyproto xyproto closed this as completed Mar 19, 2016
@AladW
Copy link
Author

AladW commented Mar 19, 2016

Works for me, thanks. 👍

xyproto added a commit that referenced this issue Apr 4, 2016
xyproto added a commit that referenced this issue Apr 4, 2016
xyproto added a commit that referenced this issue Apr 4, 2016
xyproto added a commit that referenced this issue Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants