Skip to content

Commit 601adeb

Browse files
committed
update_ebuilds: Fix support for rsync of eclass
For eclasses we need to skip the mkdir and trailing slash. Signed-off-by: Jeremi Piotrowski <[email protected]>
1 parent 1bb108e commit 601adeb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

update_ebuilds

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,13 @@ for pkg in "$@"; do
5757
if [[ "$FLAGS_portage" == rsync ]]; then
5858
FLAGS_portage="${FLAGS_rsync}"
5959
fi
60-
mkdir -p "$pkg"
61-
rsync $RSYNC_OPTS -v --exclude CVS "$FLAGS_portage/$pkg/" "$pkg"
60+
if [[ "$pkg" =~ "eclass/"* ]]; then
61+
slash=
62+
else
63+
slash="/"
64+
mkdir -p "$pkg"
65+
fi
66+
rsync $RSYNC_OPTS -v --exclude CVS "$FLAGS_portage/$pkg${slash}" "$pkg"
6267
fi
6368

6469
# Make sure we don't change the repo name to 'gentoo'

0 commit comments

Comments
 (0)