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
a2a7253a
Commit
a2a7253a
authored
Jun 11, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-search-file: force overwrite list file
parent
9c86e12d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
epm-sh-altlinux
bin/epm-sh-altlinux
+4
-3
No files found.
bin/epm-sh-altlinux
View file @
a2a7253a
...
...
@@ -63,11 +63,11 @@ compress_file_inplace()
if
epm assure lz4 </dev/null
;
then
#docmd lz4 --rm "$OFILE" "$OFILE.lz4" || return
# due old lz4
docmd lz4
"
$OFILE
"
"
$OFILE
.lz4"
||
return
docmd lz4
-f
"
$OFILE
"
"
$OFILE
.lz4"
||
return
rm
-fv
"
$OFILE
"
else
epm assure xz </dev/null
||
return
docmd xz
"
$OFILE
"
||
return
docmd xz
-f
"
$OFILE
"
||
return
fi
return
0
}
...
...
@@ -91,11 +91,12 @@ download_alt_contents_index()
if
echo
"
$URL
"
|
grep
-q
"^file:/"
;
then
URL
=
$(
echo
"
$URL
"
|
sed
-e
"s|^file:||"
)
[
-s
"
$URL
"
]
||
{
touch
$OFILE
.failed
;
return
1
;
}
ln
-s
"
$URL
"
"
$OFILE
"
||
{
touch
$OFILE
.failed
;
return
1
;
}
ln
-s
f
"
$URL
"
"
$OFILE
"
||
{
touch
$OFILE
.failed
;
return
1
;
}
else
docmd eget
-O
"
$OFILE
"
"
$URL
"
||
{
rm
-fv
$OFILE
;
touch
$OFILE
.failed
;
return
1
;
}
fi
rm
-f
$OFILE
.failed
compress_file_inplace
"
$OFILE
"
}
...
...
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