Skip to content

Commit

Permalink
syncrepo.sh: Use rsync-repos from a local checkout
Browse files Browse the repository at this point in the history
Allow using the rsync-repos script from a local checkout of the releng
scripts repository. While at it, add the script as a submodule for
convenience.
  • Loading branch information
aperezdc committed Feb 16, 2023
1 parent 7f6f762 commit 9e49816
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ostree-releng-scripts"]
path = ostree-releng-scripts
url = https://github.com/ostreedev/ostree-releng-scripts
1 change: 1 addition & 0 deletions ostree-releng-scripts
Submodule ostree-releng-scripts added at 621f76
3 changes: 2 additions & 1 deletion syncrepo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ set -e
LOCAL="$(dirname "$0")/.flatpak-repo/"
REMOTE='[email protected]:/srv/http/flatpak.perezdecastro.org/revolt/'

RSYNC_REPOS=$(type -P ostree-rsync-repos rsync-repos | head -1)
RSYNC_REPOS=$(type -P ostree-rsync-repos rsync-repos \
"$(dirname "$0")/ostree-releng-scripts/rsync-repos" | head -1)
if [[ -z ${RSYNC_REPOS} ]] ; then
echo "$0: The ostree-rsync-repos (or rsync-repos) tool is not installed."
echo 'Please install from https://github.com/ostreedev/ostree-releng-scripts'
Expand Down

0 comments on commit 9e49816

Please sign in to comment.