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
93c0352e
Verified
Commit
93c0352e
authored
Dec 09, 2021
by
Morten Linderud
🏄
Browse files
Remove debug prints
Signed-off-by:
Morten Linderud
<
morten@linderud.pw
>
parent
e470a748
Changes
2
Hide whitespace changes
Inline
Side-by-side
db-functions
View file @
93c0352e
...
...
@@ -459,7 +459,6 @@ check_repo_permission() {
}
set_repo_permission
()
{
local
-
;
set
-x
local
repo
=
$1
local arch
=
$2
local
dbfile
=
"
${
FTP_BASE
}
/
${
repo
}
/os/
${
arch
}
/
${
repo
}${
DBEXT
}
"
...
...
@@ -477,13 +476,11 @@ set_repo_permission() {
}
arch_repo_modify
()
{
echo
"call: arch_repo_modify
${
@@Q
}
"
local
action
=
$1
local
repo
=
$2
local arch
=
$3
local
pkgs
=(
"
${
@
:4
}
"
)
local
dbfile
=
"
${
FTP_BASE
}
/
${
repo
}
/os/
${
arch
}
/
${
repo
}${
DBEXT
}
"
tree
"
${
FTP_BASE
}
"
if
[[
${
action
}
=
remove
&&
!
-f
${
dbfile
}
]]
;
then
error
"No database found at '%s'"
"
$dbfile
"
...
...
@@ -492,7 +489,6 @@ arch_repo_modify() {
# package files for repo-add might be relative to repo dir
pushd
"
${
dbfile
%/*
}
"
>
/dev/null
ls
/usr/bin/
"repo-
${
action
}
"
-q
"
${
dbfile
}
"
"
${
pkgs
[@]
}
"
\
||
error
'%s'
"repo-
${
action
}
${
dbfile
@Q
}
${
pkgs
[*]@Q
}
"
set_repo_permission
"
${
repo
}
"
"
${
arch
}
"
...
...
db-update
View file @
93c0352e
...
...
@@ -79,7 +79,6 @@ done
for
repo
in
"
${
repos
[@]
}
"
;
do
msg
"Updating [%s]..."
"
$repo
"
tree
"
${
STAGING
}
/
${
repo
}
"
any_pkgs
=(
$(
getpkgfiles
"
${
STAGING
}
/
${
repo
}
/"
*
-any
${
PKGEXTS
}
2>/dev/null
)
)
for
pkgarch
in
"
${
ARCHES
[@]
}
"
;
do
add_pkgs
=()
...
...
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