[pass] [patch] fix lastpass import (v2)

Raphaël Droz raphael.droz at gmail.com
Wed Apr 8 05:20:53 CEST 2015


I Forgot to restore one of the information output line in the previous
patch
(hunk quoted below)

In the new attachment it is


> @@ -110,8 +110,11 @@
>  successful = 0
>  errors = []
>  records.each do |r|
> -  print "Creating record #{r.name}..."
> -  IO.popen("pass insert -m#{"f" if FORCE} '#{r.name}' > /dev/null",
> 'w') do |io|
> +  if File.exist?("#{r.name}.gpg") and FORCE == false
> +    puts "skipped #{r.name}: already exists"
> +    next
> +  end
> +  IO.popen("pass insert -m '#{r.name}' > /dev/null", 'w') do |io|
>      io.puts r
>    end
>    if $? == 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixes-lastpass-import-v2.patch
Type: text/x-diff
Size: 1146 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150408/3c15ae6e/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150408/3c15ae6e/attachment.asc>


More information about the Password-Store mailing list