Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
a6bc7c73
Commit
a6bc7c73
authored
Jul 11, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add EPM_IPFS_DB_UPDATE_SKIPPING
parent
dda16849
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
epm-play
bin/epm-play
+3
-3
No files found.
bin/epm-play
View file @
a6bc7c73
...
@@ -359,7 +359,7 @@ __epm_play_download_epm_file()
...
@@ -359,7 +359,7 @@ __epm_play_download_epm_file()
__epm_play_initialize_ipfs
()
__epm_play_initialize_ipfs
()
{
{
if
[
!
-d
"
$(
dirname
"
$e
pm
_ipfs_db
"
)
"
]
;
then
if
[
!
-d
"
$(
dirname
"
$e
get
_ipfs_db
"
)
"
]
;
then
warning
"ipfs db dir
$eget_ipfs_db
does not exist, skipping IPFS mode"
warning
"ipfs db dir
$eget_ipfs_db
does not exist, skipping IPFS mode"
return
1
return
1
fi
fi
...
@@ -374,13 +374,13 @@ __epm_play_initialize_ipfs()
...
@@ -374,13 +374,13 @@ __epm_play_initialize_ipfs()
t
=
$(
mktemp
)
||
fatal
t
=
$(
mktemp
)
||
fatal
remove_on_exit
$t
remove_on_exit
$t
__epm_play_download_epm_file
"
$t
"
"eget-ipfs-db.txt"
||
warning
"Can't update IPFS DB"
__epm_play_download_epm_file
"
$t
"
"eget-ipfs-db.txt"
||
warning
"Can't update IPFS DB"
if
[
-s
"
$t
"
]
;
then
if
[
-s
"
$t
"
]
&&
[
-z
"
$EPM_IPFS_DB_UPDATE_SKIPPING
"
]
;
then
echo
>>
$t
echo
>>
$t
cat
$eget_ipfs_db
>>
$t
cat
$eget_ipfs_db
>>
$t
sort
-u
<
$t
|
grep
-v
"^$"
>
$eget_ipfs_db
sort
-u
<
$t
|
grep
-v
"^$"
>
$eget_ipfs_db
fi
fi
# the only one thing
ne
ed to enable IPFS in eget
# the only one thing
is need
ed to enable IPFS in eget
export
EGET_IPFS_DB
=
"
$eget_ipfs_db
"
export
EGET_IPFS_DB
=
"
$eget_ipfs_db
"
}
}
...
...
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