Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devtools
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archlinux
devtools
Commits
dee4d05b
Commit
dee4d05b
authored
12 years ago
by
Pierre Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
Fix crossrepomove for use on nymeria
parent
10eba281
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
crossrepomove.in
+14
-28
14 additions, 28 deletions
crossrepomove.in
with
15 additions
and
29 deletions
Makefile
+
1
−
1
View file @
dee4d05b
V
=
2013012
2
V
=
2013012
7
PREFIX
=
/usr/local
...
...
This diff is collapsed.
Click to expand it.
crossrepomove.in
+
14
−
28
View file @
dee4d05b
...
...
@@ -11,26 +11,16 @@ fi
pkgbase
=
"
${
1
}
"
packages_svn
=
'svn+ssh://svn-packages@nymeria.archlinux.org/srv/repos/svn-packages/svn'
packages_server
=
'nymeria.archlinux.org'
community_svn
=
'svn+ssh://svn-community@nymeria.archlinux.org/srv/repos/svn-community/svn'
community_server
=
'nymeria.archlinux.org'
mirror
=
'http://mirrors.kernel.org/archlinux'
case
$scriptname
in
extra2community
)
source_svn
=
"
${
packages_svn
}
"
target_svn
=
"
${
community_svn
}
"
source_server
=
"
${
packages_server
}
"
target_server
=
"
${
community_server
}
"
source_name
=
'packages'
target_name
=
'community'
source_repo
=
'extra'
target_repo
=
'community'
;;
community2extra
)
source_svn
=
"
${
community_svn
}
"
target_svn
=
"
${
packages_svn
}
"
source_server
=
"
${
community_server
}
"
target_server
=
"
${
packages_server
}
"
source_name
=
'community'
target_name
=
'packages'
source_repo
=
'community'
target_repo
=
'extra'
;;
...
...
@@ -39,6 +29,13 @@ case $scriptname in
;;
esac
server
=
'nymeria.archlinux.org'
mirror
=
"http://
${
server
}
"
source_svn
=
"svn+ssh://svn-
${
source_name
}
@
${
server
}
/srv/repos/svn-
${
source_name
}
/svn"
target_svn
=
"svn+ssh://svn-
${
target_name
}
@
${
server
}
/srv/repos/svn-
${
target_name
}
/svn"
source_dbscripts
=
"/srv/repos/svn-
${
source_name
}
/dbscripts"
target_dbscripts
=
"/srv/repos/svn-
${
target_name
}
/dbscripts"
setup_workdir
pushd
$WORKDIR
>
/dev/null
...
...
@@ -59,7 +56,7 @@ for _arch in ${arch[@]}; do
for
_pkgname
in
${
pkgname
[@]
}
;
do
fullver
=
$(
get_full_version
$_pkgname
)
# FIXME: this only works with .xz packages
ssh
"
${
target_
server
}
"
"cd staging/
${
target_repo
}
ssh
"
${
server
}
"
"cd staging/
${
target_repo
}
curl -O
${
mirror
}
/
${
source_repo
}
/os/
${
repo_arch
}
/
$_pkgname
-
$fullver
-
${
_arch
}
.pkg.tar.xz
curl -O
${
mirror
}
/
${
source_repo
}
/os/
${
repo_arch
}
/
$_pkgname
-
$fullver
-
${
_arch
}
.pkg.tar.xz.sig"
||
die
done
...
...
@@ -73,22 +70,11 @@ pushd "target_checkout/${pkgbase}/trunk" >/dev/null
archrelease
"
${
arch
[@]/#/
$target_repo
-
}
"
||
die
popd
>
/dev/null
if
[[
"
${
target_server
}
"
==
"
${
community_server
}
"
]]
;
then
dbscripts_path
=
'/srv/repos/svn-community/dbscripts'
else
dbscripts_path
=
'/srv/repos/svn-packages/dbscripts'
fi
ssh
"
${
target_server
}
"
"
${
dbscripts_path
}
/db-update"
||
die
ssh
"
${
server
}
"
"
${
target_dbscripts
}
/db-update"
||
die
msg
"Removing
${
pkgbase
}
from
${
source_repo
}
"
if
[[
"
${
source_server
}
"
==
"
${
community_server
}
"
]]
;
then
dbscripts_path
=
'/srv/repos/svn-community/dbscripts'
else
dbscripts_path
=
'/srv/repos/svn-packages/dbscripts'
fi
for
_arch
in
${
arch
[@]
}
;
do
ssh
"
${
source_
server
}
"
"
${
dbscripts
_path
}
/db-remove
${
source_repo
}
${
_arch
}
${
pkgbase
}
"
ssh
"
${
server
}
"
"
${
source_
dbscripts
}
/db-remove
${
source_repo
}
${
_arch
}
${
pkgbase
}
"
done
svn
-q
checkout
-N
"
${
source_svn
}
"
source_checkout
svn
-q
up
"source_checkout/
${
pkgbase
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment