summaryrefslogtreecommitdiffstats
path: root/makechrootpkg
diff options
context:
space:
mode:
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg b/makechrootpkg
index a0ee98b..c335f69 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -172,7 +172,7 @@ chown -R nobody "$uniondir/pkgdest"
source PKGBUILD
cp PKGBUILD "$uniondir/build/"
for f in ${source[@]}; do
- basef=$(basename $f)
+ basef=$(echo $f | sed 's|::.*||' | sed 's|^.*://.*/||g')
if [ -f "$basef" ]; then
cp "$basef" "$uniondir/srcdest/"
fi