Browse Source

fixes for modularization: at least now --template works

tags/3.99.0
Sandro Tosi 13 years ago
parent
commit
81ed7d7af5
3 changed files with 21 additions and 7 deletions
  1. +8
    -5
      bin/reportbug
  2. +11
    -1
      debian/changelog
  3. +2
    -1
      setup.py

+ 8
- 5
bin/reportbug View File

@@ -38,8 +38,11 @@ import gettext
import textwrap

from reportbug import utils
from reportbug import (
VERSION,
COPYRIGHT
)
from reportbug.utils import (
VERSION, COPYRIGHT,
MODE_EXPERT, MODE_ADVANCED, MODE_NOVICE, MODE_STANDARD,
)
from reportbug.tempfiles import (
@@ -827,9 +830,9 @@ def main():
"indicate problems with this interface.\n",
interface)

iface = 'reportbug_ui_%(interface)s' % vars()
iface = '%(interface)s' % vars()
try:
lib_package = __import__('reportbuglib', fromlist=[iface])
lib_package = __import__('reportbug.ui', fromlist=[iface])
ui = getattr(lib_package, iface)
except UINotImportable, msg:
ui.long_message('*** Unable to import %s interface: %s '
@@ -837,7 +840,7 @@ def main():
interface, msg)
ewrite('\n')

reportbug.submit.ui = ui
submit.ui = ui
# Add INTERFACE as an environment variable to access it from the
# script gathering the special information for reportbug, when
# a new bug should be filed against it.
@@ -1809,7 +1812,7 @@ orphaned for a long period of time are often removed from the archive.\n''')
# newline in the message. See #234963.
body = body.rstrip('\n')+'\n'

reportbug.submit.send_report(
submit.send_report(
body, attachments, mua, fromaddr, sendto, ccaddr, bccaddr,
headers, package, charset, mailing, sysinfo, rtype, exinfo,
self.options.replyto, self.options.printonly, self.options.template,


+ 11
- 1
debian/changelog View File

@@ -3,7 +3,17 @@ reportbug (3.99.0) UNRELEASED; urgency=low
[ Chris Lawrence ]
* Split off python-reportbug into a separate package.

-- Sandro Tosi <matrixhasu@gmail.com> Sun, 17 Aug 2008 01:06:52 +0200
[ Sandro Tosi ]
* Split off python-reportbug into a separate package
- bin/reportbug
+ fixed VERSION and COPYRIGHT import
+ hacked the way to identify working ui ******* NEEDS ADDITIONAL FIX, line 833 ***********
+ remove module name from some methods call, since we import selectively
some methods only
- setup.py
+ added reportbug.ui to packages to install UI files

-- Sandro Tosi <matrixhasu@gmail.com> Sun, 31 Aug 2008 01:39:08 +0200

reportbug (3.45) unstable; urgency=low



+ 2
- 1
setup.py View File

@@ -22,5 +22,6 @@ setup(name='reportbug', version=reportbug.VERSION_NUMBER,
url='http://alioth.debian.org/projects/reportbug',
data_files=[('share/reportbug', ['handle_bugscript', 'reportbug.el']),
('share/bug/reportbug', ['presubj', 'script'])],
license='MIT', packages=['reportbug'],
license='MIT',
packages=['reportbug','reportbug.ui'],
scripts=['bin/reportbug', 'bin/querybts'])

Loading…
Cancel
Save