Lines 55-60
Link Here
|
55 |
# add darcs to deps |
55 |
# add darcs to deps |
56 |
DEPEND="dev-vcs/darcs" |
56 |
DEPEND="dev-vcs/darcs" |
57 |
|
57 |
|
|
|
58 |
darcs_repo_id() { |
59 |
local darcs_repo_data=($(${EDARCS_DARCS_CMD} show repo | grep "Num Patches")) |
60 |
# handle string like: " Num Patches: 3860" |
61 |
echo "${darcs_repo_data[2]}" |
62 |
} |
63 |
|
58 |
# is called from darcs_src_unpack |
64 |
# is called from darcs_src_unpack |
59 |
darcs_fetch() { |
65 |
darcs_fetch() { |
60 |
|
66 |
|
Lines 114-119
Link Here
|
114 |
eval $cmdupdate || die "darcs update command failed" |
120 |
eval $cmdupdate || die "darcs update command failed" |
115 |
fi |
121 |
fi |
116 |
|
122 |
|
|
|
123 |
export DARCS_REPO_ID=$(darcs_repo_id) |
124 |
einfo " patches in repo: ${DARCS_REPO_ID}" |
125 |
|
117 |
popd |
126 |
popd |
118 |
} |
127 |
} |
119 |
|
128 |
|