Commit 5344e29b authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbugs: rearrange URLs using, cleanup

parent 01a7deb8
...@@ -11,11 +11,10 @@ ...@@ -11,11 +11,10 @@
# load common functions, compatible with local and installed script # load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common . `dirname $0`/../share/eterbuild/functions/common
load_mod rpm web
which xdg-open 2>/dev/null >/dev/null && BROWSER=xdg-open BUGZILLAURL="https://bugzilla.altlinux.org"
URLSHOWBUG="https://bugzilla.altlinux.org/show_bug.cgi?id=$1"
PRODUCT=Sisyphus PRODUCT=Sisyphus
URLBUGLIST="https://bugzilla.altlinux.org/buglist.cgi?product=$PRODUCT&component=$PKGNAME&component_type=equals&simple=1"
show_bugs() show_bugs()
...@@ -33,7 +32,8 @@ show_bugs() ...@@ -33,7 +32,8 @@ show_bugs()
show_bugbyid() show_bugbyid()
{ {
# TEXT=1 # TEXT=1
show_bugs $URLSHOWBUG local URLSHOWBUG="$BUGZILLAURL/show_bug.cgi?id=$1"
show_bugs "$URLSHOWBUG"
} }
...@@ -72,7 +72,7 @@ fi ...@@ -72,7 +72,7 @@ fi
# if param is number # if param is number
if [ -z `echo ${1} | sed -e "s/[0-9]*//"` ] ; then if [ -z `echo ${1} | sed -e "s/[0-9]*//"` ] ; then
show_bugbyid $1 show_bugbyid "$1"
exit exit
fi fi
...@@ -102,7 +102,8 @@ for i in $SPECLIST ; do ...@@ -102,7 +102,8 @@ for i in $SPECLIST ; do
#altbug --pkg "$PKGNAME" --subj "$SUMMARY" #altbug --pkg "$PKGNAME" --subj "$SUMMARY"
show_bugbyid $ID show_bugbyid $ID
else else
show_bugs $URLBUGLIST | grep "@" local URLBUGLIST="$BUGZILLAURL/buglist.cgi?product=$PRODUCT&component=$PKGNAME&component_type=equals&simple=1"
show_bugs "$URLBUGLIST" | grep "@"
fi fi
done done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment