summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-03-13 15:01:15 +0000
committerAaron Griffin <aaron@archlinux.org>2007-03-13 15:01:15 +0000
commit2020e0ec73bd2e83ff1598492f758a03e7afe586 (patch)
tree89fbc769d65b8a8abbb3bb6c2def2465f47e1122 /scripts
parent74e8b28fc34ee9b40f6b3b5daacdbe1713f3bc1f (diff)
downloadpacman-2020e0ec73bd2e83ff1598492f758a03e7afe586.tar.xz
* Sebastian Sareyko
Fix repo-add filename addition (use basename)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/repo-add2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/repo-add b/scripts/repo-add
index 352d9df4..d6e2c5ae 100755
--- a/scripts/repo-add
+++ b/scripts/repo-add
@@ -148,7 +148,7 @@ db_write_entry()
# create desc entry
echo ":: creating 'desc' db entry"
- echo -e "%FILENAME%\n$1\n" >> desc
+ echo -e "%FILENAME%\n$(basename $1)\n" >> desc
echo -e "%NAME%\n$pkgname\n" >>desc
echo -e "%VERSION%\n$pkgver\n" >>desc
if [ -n "$pkgdesc" ]; then