1 |
mikepolniak wrote: |
2 |
> On Fri, 26 Jul 2002 22:50:41 +0200 |
3 |
> Marko Mikulicic <marko@××××.org> wrote: |
4 |
> |
5 |
> |
6 |
|
7 |
> |
8 |
> Since /usr/portage/incoming/apmd/ does not have an ebuild file the script |
9 |
> fails with: |
10 |
> |
11 |
> ls: /usr/portage/incoming/apmd/*.ebuild: No such file or directory |
12 |
> ./nuebuild: .: filename argument required |
13 |
|
14 |
the script should go on. |
15 |
It will report the error but it should go on. |
16 |
I know it's annoying, but I don't know if its worth |
17 |
complicating the script just for handling a exceptional condition |
18 |
which should not be there. (If the program doesn't abort) |
19 |
However I have the patch: |
20 |
|
21 |
<snip> |
22 |
** /usr/local/bin/emerge-rsync 2002-07-26 22:47:41.000000000 +0200 |
23 |
--- emerge-rsync 2002-07-27 16:00:39.000000000 +0200 |
24 |
*************** |
25 |
*** 34,40 **** |
26 |
echo |
27 |
echo New ebuilds: |
28 |
for i in $(cat $NEW); do |
29 |
! . $(ls $i/*.ebuild --sort=time | head -n 1) |
30 |
echo -e $GREEN${i##$PORTDIR/}$NORMAL: $DESCRIPTION |
31 |
done |
32 |
fi |
33 |
--- 34,42 ---- |
34 |
echo |
35 |
echo New ebuilds: |
36 |
for i in $(cat $NEW); do |
37 |
! DESCRIPTION="" |
38 |
! EBUILD=$(ls $i/*.ebuild --sort=time 2>/dev/null | head -n 1) |
39 |
! [ -z "$EBUILD" ] || . $EBUILD |
40 |
echo -e $GREEN${i##$PORTDIR/}$NORMAL: $DESCRIPTION |
41 |
done |
42 |
fi |
43 |
</snip> |
44 |
|
45 |
But I would like to hear opinions. |
46 |
Is it normal to have directories with no *.emerge? |
47 |
Should it report an error message or simply discard the description |
48 |
(as the patch does) ? |
49 |
Clean is nice, but real world is ugly :-) |
50 |
|
51 |
Marko |