Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 45448
Collapse All | Expand All

(-)misc/xine-bugreport (-12 / +43 lines)
Lines 567-572 Link Here
567
    short=
567
    short=
568
    description=
568
    description=
569
    tmpfile=/tmp/xine-check-dsc.$$
569
    tmpfile=/tmp/xine-check-dsc.$$
570
    check_tmpfile;
570
    true >$tmpfile
571
    true >$tmpfile
571
    cat $messagefile | while read line; do
572
    cat $messagefile | while read line; do
572
	if $found; then
573
	if $found; then
Lines 714-719 Link Here
714
  read answer
715
  read answer
715
}
716
}
716
717
718
check_bugreport() {
719
  if test -f "$bugreport"; then
720
    echo "Hmmm, I already found a bug report in ${bugreport}."
721
    if yesno "Do you want me to overwrite that file?"; then
722
      rm "$bugreport" || clean_exit 1
723
    else
724
      echo "Okay, aborting on your request."
725
      clean_exit 0
726
    fi
727
  fi
728
729
  if test -h "$bugreport"; then
730
    echo "Hmmm, I already found another file in ${bugreport}."
731
    if yesno "Do you want me to try to overwrite that file?"; then
732
      rm "$bugreport" || clean_exit 1
733
    else
734
      echo "Okay, aborting on your request."
735
      clean_exit 0
736
    fi
737
  fi
738
}
739
740
check_logfile() {
741
  if test -h "$logfile"; then
742
    echo "Hmmm, I already found another file in ${logfile}."
743
    if yesno "Do you want me to try to overwrite that file?"; then
744
      rm "$logfile" || clean_exit 1
745
    else
746
      echo "Okay, aborting on your request."
747
      clean_exit 0
748
    fi
749
  fi
750
}
751
752
check_tmpfile() {
753
  if test -h "$tmpfile"; then
754
    rm "$tmpfile" || clean_exit 1
755
  fi
756
}
717
757
718
# command line
758
# command line
719
while [ "$#" -gt 0 ]; do
759
while [ "$#" -gt 0 ]; do
Lines 763-774 Link Here
763
if [ "$runmode" = "bugreport" ]; then
803
if [ "$runmode" = "bugreport" ]; then
764
  do_log=true
804
  do_log=true
765
  logfile=/tmp/xine-check.log
805
  logfile=/tmp/xine-check.log
806
  check_logfile;
766
  echo logging to ${logfile}...
807
  echo logging to ${logfile}...
767
  echo >$logfile
808
  echo >$logfile
768
fi
809
fi
769
810
770
771
772
## actual checks start here:
811
## actual checks start here:
773
812
774
case `id` in
813
case `id` in
Lines 1173-1188 Link Here
1173
  clean_exit 0    
1212
  clean_exit 0    
1174
fi
1213
fi
1175
1214
1176
if test -f "$bugreport"; then
1177
  echo "Hmmm, I already found a bug report in ${bugreport}."
1178
  if yesno "Do you want me to overwrite that file?"; then
1179
    rm "$bugreport"
1180
  else
1181
    echo "Okay, aborting on your request."
1182
    clean_exit 0
1183
  fi
1184
fi
1185
  
1186
echo
1215
echo
1187
echo
1216
echo
1188
if yesno "Could you solve your xine problems using the previous hints?"; then
1217
if yesno "Could you solve your xine problems using the previous hints?"; then
Lines 1190-1195 Link Here
1190
  clean_exit
1219
  clean_exit
1191
fi
1220
fi
1192
1221
1222
check_bugreport;
1223
1193
echo
1224
echo
1194
echo "What kind of trouble does xine cause for you?"
1225
echo "What kind of trouble does xine cause for you?"
1195
echo
1226
echo
(-)misc/xine-check (-12 / +43 lines)
Lines 567-572 Link Here
567
    short=
567
    short=
568
    description=
568
    description=
569
    tmpfile=/tmp/xine-check-dsc.$$
569
    tmpfile=/tmp/xine-check-dsc.$$
570
    check_tmpfile;
570
    true >$tmpfile
571
    true >$tmpfile
571
    cat $messagefile | while read line; do
572
    cat $messagefile | while read line; do
572
	if $found; then
573
	if $found; then
Lines 714-719 Link Here
714
  read answer
715
  read answer
715
}
716
}
716
717
718
check_bugreport() {
719
  if test -f "$bugreport"; then
720
    echo "Hmmm, I already found a bug report in ${bugreport}."
721
    if yesno "Do you want me to overwrite that file?"; then
722
      rm "$bugreport" || clean_exit 1
723
    else
724
      echo "Okay, aborting on your request."
725
      clean_exit 0
726
    fi
727
  fi
728
729
  if test -h "$bugreport"; then
730
    echo "Hmmm, I already found another file in ${bugreport}."
731
    if yesno "Do you want me to try to overwrite that file?"; then
732
      rm "$bugreport" || clean_exit 1
733
    else
734
      echo "Okay, aborting on your request."
735
      clean_exit 0
736
    fi
737
  fi
738
}
739
740
check_logfile() {
741
  if test -h "$logfile"; then
742
    echo "Hmmm, I already found another file in ${logfile}."
743
    if yesno "Do you want me to try to overwrite that file?"; then
744
      rm "$logfile" || clean_exit 1
745
    else
746
      echo "Okay, aborting on your request."
747
      clean_exit 0
748
    fi
749
  fi
750
}
751
752
check_tmpfile() {
753
  if test -h "$tmpfile"; then
754
    rm "$tmpfile" || clean_exit 1
755
  fi
756
}
717
757
718
# command line
758
# command line
719
while [ "$#" -gt 0 ]; do
759
while [ "$#" -gt 0 ]; do
Lines 763-774 Link Here
763
if [ "$runmode" = "bugreport" ]; then
803
if [ "$runmode" = "bugreport" ]; then
764
  do_log=true
804
  do_log=true
765
  logfile=/tmp/xine-check.log
805
  logfile=/tmp/xine-check.log
806
  check_logfile;
766
  echo logging to ${logfile}...
807
  echo logging to ${logfile}...
767
  echo >$logfile
808
  echo >$logfile
768
fi
809
fi
769
810
770
771
772
## actual checks start here:
811
## actual checks start here:
773
812
774
case `id` in
813
case `id` in
Lines 1173-1188 Link Here
1173
  clean_exit 0    
1212
  clean_exit 0    
1174
fi
1213
fi
1175
1214
1176
if test -f "$bugreport"; then
1177
  echo "Hmmm, I already found a bug report in ${bugreport}."
1178
  if yesno "Do you want me to overwrite that file?"; then
1179
    rm "$bugreport"
1180
  else
1181
    echo "Okay, aborting on your request."
1182
    clean_exit 0
1183
  fi
1184
fi
1185
  
1186
echo
1215
echo
1187
echo
1216
echo
1188
if yesno "Could you solve your xine problems using the previous hints?"; then
1217
if yesno "Could you solve your xine problems using the previous hints?"; then
Lines 1190-1195 Link Here
1190
  clean_exit
1219
  clean_exit
1191
fi
1220
fi
1192
1221
1222
check_bugreport;
1223
1193
echo
1224
echo
1194
echo "What kind of trouble does xine cause for you?"
1225
echo "What kind of trouble does xine cause for you?"
1195
echo
1226
echo
(-)misc/xine-check.sh.in (-12 / +43 lines)
Lines 567-572 Link Here
567
    short=
567
    short=
568
    description=
568
    description=
569
    tmpfile=/tmp/xine-check-dsc.$$
569
    tmpfile=/tmp/xine-check-dsc.$$
570
    check_tmpfile;
570
    true >$tmpfile
571
    true >$tmpfile
571
    cat $messagefile | while read line; do
572
    cat $messagefile | while read line; do
572
	if $found; then
573
	if $found; then
Lines 714-719 Link Here
714
  read answer
715
  read answer
715
}
716
}
716
717
718
check_bugreport() {
719
  if test -f "$bugreport"; then
720
    echo "Hmmm, I already found a bug report in ${bugreport}."
721
    if yesno "Do you want me to overwrite that file?"; then
722
      rm "$bugreport" || clean_exit 1
723
    else
724
      echo "Okay, aborting on your request."
725
      clean_exit 0
726
    fi
727
  fi
728
729
  if test -h "$bugreport"; then
730
    echo "Hmmm, I already found another file in ${bugreport}."
731
    if yesno "Do you want me to try to overwrite that file?"; then
732
      rm "$bugreport" || clean_exit 1
733
    else
734
      echo "Okay, aborting on your request."
735
      clean_exit 0
736
    fi
737
  fi
738
}
739
740
check_logfile() {
741
  if test -h "$logfile"; then
742
    echo "Hmmm, I already found another file in ${logfile}."
743
    if yesno "Do you want me to try to overwrite that file?"; then
744
      rm "$logfile" || clean_exit 1
745
    else
746
      echo "Okay, aborting on your request."
747
      clean_exit 0
748
    fi
749
  fi
750
}
751
752
check_tmpfile() {
753
  if test -h "$tmpfile"; then
754
    rm "$tmpfile" || clean_exit 1
755
  fi
756
}
717
757
718
# command line
758
# command line
719
while [ "$#" -gt 0 ]; do
759
while [ "$#" -gt 0 ]; do
Lines 763-774 Link Here
763
if [ "$runmode" = "bugreport" ]; then
803
if [ "$runmode" = "bugreport" ]; then
764
  do_log=true
804
  do_log=true
765
  logfile=/tmp/xine-check.log
805
  logfile=/tmp/xine-check.log
806
  check_logfile;
766
  echo logging to ${logfile}...
807
  echo logging to ${logfile}...
767
  echo >$logfile
808
  echo >$logfile
768
fi
809
fi
769
810
770
771
772
## actual checks start here:
811
## actual checks start here:
773
812
774
case `id` in
813
case `id` in
Lines 1173-1188 Link Here
1173
  clean_exit 0    
1212
  clean_exit 0    
1174
fi
1213
fi
1175
1214
1176
if test -f "$bugreport"; then
1177
  echo "Hmmm, I already found a bug report in ${bugreport}."
1178
  if yesno "Do you want me to overwrite that file?"; then
1179
    rm "$bugreport"
1180
  else
1181
    echo "Okay, aborting on your request."
1182
    clean_exit 0
1183
  fi
1184
fi
1185
  
1186
echo
1215
echo
1187
echo
1216
echo
1188
if yesno "Could you solve your xine problems using the previous hints?"; then
1217
if yesno "Could you solve your xine problems using the previous hints?"; then
Lines 1190-1195 Link Here
1190
  clean_exit
1219
  clean_exit
1191
fi
1220
fi
1192
1221
1222
check_bugreport;
1223
1193
echo
1224
echo
1194
echo "What kind of trouble does xine cause for you?"
1225
echo "What kind of trouble does xine cause for you?"
1195
echo
1226
echo

Return to bug 45448