summaryrefslogtreecommitdiff
path: root/include/pkglist
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-07 22:11:32 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-07 22:11:32 +0200
commit4d01ea7a6930a99a46c7e8472eb98d51264e2449 (patch)
treeb6125b384201b73f7a4c212912a108fec46256cb /include/pkglist
parentcaecaffe2c8203a050727cd143843fbfe41e5a5b (diff)
include/pkglist: Give error message for non-git/-hg packages
Diffstat (limited to 'include/pkglist')
-rwxr-xr-xinclude/pkglist5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/pkglist b/include/pkglist
index 95beb9c..f3d15e0 100755
--- a/include/pkglist
+++ b/include/pkglist
@@ -2,7 +2,7 @@
cd $1 || exit 100
-rm .list
+rm -f .list
for i in *(/,@); {
if [[ -d $i/.hg ]] {
@@ -12,7 +12,6 @@ for i in *(/,@); {
echo -n "$i git " >> .list
git --git-dir=$i/.git log | fgrep commit | head -n 1 | cut -d ' ' -f 2 >> .list
} else {
- echo -n "$i plain " >> .list
- ls -ablR $i | md5sum | cut -d ' ' -f 1 >> .list
+ echo "Unsupported package: $i" >&2
}
}