Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
184
Issues
184
List
Boards
Labels
Milestones
Merge Requests
50
Merge Requests
50
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
The new woob repository is here:
https://gitlab.com/woob/woob
. This gitlab will be removed soon.
Open sidebar
weboob
weboob
Commits
38e6a5cc
Commit
38e6a5cc
authored
Mar 13, 2021
by
Vincent A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib/replace-backends-pass.py: woob rename
parent
0e709929
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
contrib/replace-backends-pass.py
contrib/replace-backends-pass.py
+4
-4
No files found.
contrib/replace-backends-pass.py
View file @
38e6a5cc
...
...
@@ -15,7 +15,7 @@
_module = bnporc
website = pp
login = 123456
password = `pass show w
eb
oob/bnporc21/password`
password = `pass show woob/bnporc21/password`
"""
from
__future__
import
print_function
...
...
@@ -29,7 +29,7 @@
SECRET_KEYWORDS
=
(
'password'
,
'secret'
)
FILE
=
os
.
getenv
(
'W
EBOOB_BACKENDS'
)
or
os
.
path
.
expanduser
(
'~/.config/web
oob/backends'
)
FILE
=
os
.
getenv
(
'W
OOB_BACKENDS'
)
or
os
.
path
.
expanduser
(
'~/.config/w
oob/backends'
)
if
not
os
.
path
.
exists
(
FILE
):
print
(
'the backends file does not exist'
)
...
...
@@ -54,12 +54,12 @@
mtc
=
re
.
match
(
regex
,
line
)
if
mtc
and
not
mtc
.
group
(
2
)
.
startswith
(
'`'
):
cmd
=
[
'pass'
,
'insert'
,
'w
eb
oob/
%
s/
%
s'
%
(
backend
,
mtc
.
group
(
1
))]
cmd
=
[
'pass'
,
'insert'
,
'woob/
%
s/
%
s'
%
(
backend
,
mtc
.
group
(
1
))]
stdin
=
2
*
(
'
%
s
\n
'
%
mtc
.
group
(
2
))
proc
=
subprocess
.
Popen
(
cmd
,
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
)
proc
.
communicate
(
stdin
.
encode
(
'utf-8'
))
if
proc
.
returncode
==
0
:
print
(
'
%
s = `pass show w
eb
oob/
%
s/
%
s`'
%
(
mtc
.
group
(
1
),
backend
,
mtc
.
group
(
1
)),
file
=
outp
)
print
(
'
%
s = `pass show woob/
%
s/
%
s`'
%
(
mtc
.
group
(
1
),
backend
,
mtc
.
group
(
1
)),
file
=
outp
)
continue
else
:
errors
+=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment