Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
dbscripts
Commits
2e0c9d9f
Verified
Commit
2e0c9d9f
authored
Dec 16, 2021
by
Morten Linderud
🏄
Browse files
cleanup: Added -f to all ln calls
Signed-off-by:
Morten Linderud
<
morten@linderud.pw
>
parent
a86f2444
Pipeline
#13908
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
db-move
View file @
2e0c9d9f
...
...
@@ -105,9 +105,9 @@ for pkgbase in "${args[@]:2}"; do
pkgpath
=
$(
getpkgfile
"
${
ftppath_from
}
/
${
tarch
}
/
${
pkgname
}
-
${
pkgver
}
-
${
pkgarch
}
"
${
PKGEXTS
}
)
pkgfile
=
"
${
pkgpath
##*/
}
"
ln
-s
"../../../
${
PKGPOOL
}
/
${
pkgfile
}
"
"
${
ftppath_to
}
/
${
tarch
}
/"
ln
-s
f
"../../../
${
PKGPOOL
}
/
${
pkgfile
}
"
"
${
ftppath_to
}
/
${
tarch
}
/"
if
[[
-f
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkgfile
}
.sig
]]
;
then
ln
-s
"../../../
${
PKGPOOL
}
/
${
pkgfile
}
.sig"
"
${
ftppath_to
}
/
${
tarch
}
/"
ln
-s
f
"../../../
${
PKGPOOL
}
/
${
pkgfile
}
.sig"
"
${
ftppath_to
}
/
${
tarch
}
/"
fi
add_pkgs+
=(
"
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkgfile
}
"
)
remove_pkgs+
=(
"
${
pkgname
}
"
)
...
...
@@ -118,9 +118,9 @@ for pkgbase in "${args[@]:2}"; do
fi
debug_pkgfile
=
"
${
debug_pkgpath
##*/
}
"
msg2
"Found debug package %s (%s)"
"
${
pkgbase
}
-debug"
"
${
tarch
}
"
ln
-s
"../../../
${
DEBUGPKGPOOL
}
/
${
debug_pkgfile
}
"
"
${
ftppath_debug_to
}
/
${
tarch
}
/"
ln
-s
f
"../../../
${
DEBUGPKGPOOL
}
/
${
debug_pkgfile
}
"
"
${
ftppath_debug_to
}
/
${
tarch
}
/"
if
[[
-f
${
FTP_BASE
}
/
${
DEBUGPKGPOOL
}
/
${
debug_pkgfile
}
.sig
]]
;
then
ln
-s
"../../../
${
DEBUGPKGPOOL
}
/
${
debug_pkgfile
}
.sig"
"
${
ftppath_debug_to
}
/
${
tarch
}
/"
ln
-s
f
"../../../
${
DEBUGPKGPOOL
}
/
${
debug_pkgfile
}
.sig"
"
${
ftppath_debug_to
}
/
${
tarch
}
/"
fi
add_debug_pkgs+
=(
"
${
FTP_BASE
}
/
${
DEBUGPKGPOOL
}
/
${
debug_pkgfile
}
"
)
remove_debug_pkgs+
=(
"
${
pkgbase
}
-debug"
)
...
...
db-update
View file @
2e0c9d9f
...
...
@@ -102,7 +102,7 @@ for repo in "${repos[@]}"; do
if
[[
-f
${
pkg
}
]]
;
then
mv
"
${
pkg
}
"
"
$FTP_BASE
/
${
currentpool
}
"
fi
ln
-s
"../../../
${
currentpool
}
/
${
pkgfile
}
"
"
$FTP_BASE
/
${
currentrepo
}
/os/
${
pkgarch
}
"
ln
-s
f
"../../../
${
currentpool
}
/
${
pkgfile
}
"
"
$FTP_BASE
/
${
currentrepo
}
/os/
${
pkgarch
}
"
# also move signatures
if
[[
-f
${
pkg
}
.sig
]]
;
then
mv
"
${
pkg
}
.sig"
"
$FTP_BASE
/
${
currentpool
}
"
...
...
@@ -112,7 +112,7 @@ for repo in "${repos[@]}"; do
"
$(
dirname
"
$(
readlink
-e
"
${
BASH_SOURCE
[0]
}
"
)
"
)
/db-archive"
"
${
FTP_BASE
}
/
${
PKGPOOL
}
/
${
pkg
##*/
}
"
fi
if
[[
-f
$FTP_BASE
/
${
currentpool
}
/
${
pkgfile
}
.sig
]]
;
then
ln
-s
"../../../
${
currentpool
}
/
${
pkgfile
}
.sig"
"
$FTP_BASE
/
${
currentrepo
}
/os/
${
pkgarch
}
"
ln
-s
f
"../../../
${
currentpool
}
/
${
pkgfile
}
.sig"
"
$FTP_BASE
/
${
currentrepo
}
/os/
${
pkgarch
}
"
fi
done
if
((
${#
add_pkgs
[@]
}
>=
1
))
;
then
...
...
Write
Preview
Supports
Markdown
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