when the upstream name is different, show it. for example, for the _ - story
Sylvestre Ledru
2 years ago
2 | 2 | echo "$(git log -1 --pretty="format:%ct" "$i")" "$i" |
3 | 3 | done | sort | while read t i; do |
4 | 4 | pkg=$(basename "$(dirname "$(dirname "$i")")") |
5 | upstream_pkg=$(grep Upstream-Name src/$pkg/debian/copyright|awk '{print $2}') | |
5 | 6 | if test -n "$(git --no-pager branch --remotes -l origin/pending-"$pkg")"; then |
6 | 7 | # If a pending branch exists, skip it |
7 | 8 | continue |
8 | 9 | fi |
9 | 10 | AUTHOR=$(cat $(dirname "$i")/changelog|grep " -- "|head -1|sed -e "s| -- \(.*\) <.*$|\1|g") |
10 | 11 | |
11 | echo -e "$(date -d@"$t") \e[32m$pkg - $AUTHOR\e[0m" | |
12 | if test $pkg == $upstream_pkg; then | |
13 | echo -e "$(date -d@"$t") \e[32m$pkg - $AUTHOR\e[0m" | |
14 | else | |
15 | echo -e "$(date -d@"$t") \e[32m$pkg (upstream name: $upstream_pkg) - $AUTHOR\e[0m" | |
16 | fi | |
12 | 17 | if ! head -1 $(dirname "$i")/changelog |grep -q UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; then |
13 | 18 | echo -e "\e[31mRFS but the first line of the changelog doesn't contain UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO\e[0m" |
14 | 19 | fi |