--- pydb-1.01.orig/pydb.py +++ pydb-1.01/pydb.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/python # pydb.py -- a Python debugger! # Modified original pdb.py @@ -128,6 +128,7 @@ # Override Bdb (note number of args is different) def set_break(self, filename, lineno, temporary=0): + filename = self.canonic(filename) # changed per RW import linecache # Import as late as possible line = linecache.getline(filename, lineno) if not line: @@ -143,6 +144,7 @@ # Override Bdb def break_here(self, frame): filename=frame.f_code.co_filename + filename = self.canonic(filename) # changed per RW if not self.breaks.has_key(filename): return 0 lineno=frame.f_lineno @@ -326,7 +328,7 @@ for i in numberlist: number = int(i) bp = Breakpoint.bpbynumber[number] - filename = bp.file + filename = self.canonic(bp.file) # added per RW lineno = bp.line if not self.breaks.has_key(filename): return 'There are no breakpoints in that file!' @@ -393,7 +395,7 @@ do_u = do_up def do_down(self, arg): - if self.curindex + 1 == len(self.stack): + if self.curindex + 1 >= len(self.stack): print 'Bottom (i.e., innermost) frame selected; you cannot go down.' else: self.curindex = self.curindex + 1 --- pydb-1.01.orig/pydbcmd.py +++ pydb-1.01/pydbcmd.py @@ -67,8 +67,7 @@ return func() else: - import newdir - names = newdir.dir(self.__class__) + names = dir(self.__class__) cmds_doc = [] cmds_undoc = [] help = {} --- pydb-1.01.orig/debian/menu +++ pydb-1.01/debian/menu @@ -0,0 +1 @@ +?package(pydb):needs="text" title="pydb" section="Apps/Programming" command="/usr/bin/pydb" hints="Debuggers" --- pydb-1.01.orig/debian/control +++ pydb-1.01/debian/control @@ -0,0 +1,15 @@ +Source: pydb +Section: devel +Priority: optional +Maintainer: Oleksandr Moskalenko +Standards-Version: 3.6.2 +Build-Depends-Indep: debhelper (>= 5), python + +Package: pydb +Architecture: all +Depends: ${python:Depends} +Suggests: ddd (>= 3.0-5) +Description: An enhanced Python command-line debugger + Pydb is a command-line debugger for Python. It is based on the standard Python + debugger pdb, but has a number of added features. Particularly, it is suitable + for use with DDD, a graphical debugger front end. --- pydb-1.01.orig/debian/rules +++ pydb-1.01/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + + + #$(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs /usr/bin /usr/lib/python2.4/site-packages + + install pydb.py debian/pydb/usr/bin/pydb + install -m644 pydbcmd.py pydbsupt.py debian/pydb/usr/lib/python2.4/site-packages + + touch install-stamp + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs Release Notes + dh_installexamples + dh_installmenu + dh_installman debian/pydb.1 + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_python + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- pydb-1.01.orig/debian/pydb.1 +++ pydb-1.01/debian/pydb.1 @@ -0,0 +1,22 @@ +.TH pydb 1 +.SH NAME +pydb \- enhanced Python debugger +.SH SYNOPSIS +.B pydb +.SH "DESCRIPTION" +This manual page documents briefly the +.BR pydb +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.B pydb +is an enhanced debugger for Python. It extends the Python standard +debugger pdb and is suited for use with the graphical debugger DDD. +.SH "SEE ALSO" +/usr/lib/python2.3/pdb.doc +.SH AUTHOR +pydb was written by Richard Wolff based on the standard +Python debugger pdb.py. +This manual page was written by Gregor Hoffleit +for the Debian project (but may be used by others). --- pydb-1.01.orig/debian/changelog +++ pydb-1.01/debian/changelog @@ -0,0 +1,129 @@ +pydb (1.01-10ubuntu1) dapper; urgency=low + + * Resynchronise with Debian + - Use python2.4 as default python version + + -- Andrew Mitchell Fri, 13 Jan 2006 14:41:39 +1300 + +pydb (1.01-10) unstable; urgency=low + + * debian/compat: Changed compatibility level to 5, the latest. + * debian/control: Updated debhelper dependency to reflect the new + compatibility level. + * debian/control: Changed the maintainer email to ...debian.org. + + -- Oleksandr Moskalenko Tue, 10 Jan 2006 09:08:02 -0700 + +pydb (1.01-9) unstable; urgency=low + + * New maintainer (Closes: #312850). Thanks to Gregor Hofleit and NMU + uploaders for their work. + * Acknowledge NMUs (Closes: #190662, #213878, #211787). + * debian/control: Updated Standards-Version to 3.6.2. + * debian/control: Changed Maintainer to my own name. + * debian/compat: Added this file to set the DH_COMPAT level to 4. + * debian/rules: Removed unnecessary comments. + * debian/rules: Fixed build-time installation paths from debian/tmp to + debian/pydb. + * debian/pydb.1: Updated the location of pdb.doc. + * debian/rules: Use dh_installman instead of the deprecated + dh_installmanpages for man page installation. + * pydb.py: Updated the file directly instead of patching it as there is no + upstream anymore (Closes: #213214). + + -- Oleksandr Moskalenko Tue, 23 Aug 2005 23:00:43 -0600 + +pydb (1.01-8.3ubuntu1) dapper; urgency=low + + * Resynchronise with Debian. + + -- Andrew Mitchell Tue, 20 Dec 2005 14:16:33 +1300 + +pydb (1.01-8.3) unstable; urgency=low + + * NMU (using the prepared package from Oleksandr Moskalenko). + * Fix breakpoint set interaction with ddd (Closes: #190662). + * Quote all debian/menu entries (lintian warning) + * Use newer standards version (lintian warning) + + -- Bastian Kleineidam Wed, 9 Mar 2005 17:56:58 +0100 + +pydb (1.01-8.2ubuntu1) hoary; urgency=low + + * Rebuild for python2.4 + - debian/rules uses python2.4 + * Standards Version 3.5.7 -> 3.6.1.1 + + -- Charles Majola Fri, 18 Mar 2005 11:54:58 +0200 + +pydb (1.01-8.2) unstable; urgency=high + + * NMU. + * Compensate for missing debhelper dependencies, depend on python. + Closes: #213878. + + -- Matthias Klose Fri, 10 Oct 2003 08:10:31 +0200 + +pydb (1.01-8.1) unstable; urgency=low + + * NMU. + * Fix postinst/prerm (closes: #211787). + + -- Matthias Klose Sun, 28 Sep 2003 13:39:02 +0200 + +pydb (1.01-8) unstable; urgency=low + + * Make the package now use Python 2.3, which is the new default (closes: + #205309). + + -- Gregor Hoffleit Tue, 2 Sep 2003 19:27:44 +0200 + +pydb (1.01-7) unstable; urgency=low + + * Make the package use Python 2.2 (closes: #140810, #161553). + + -- Gregor Hoffleit Tue, 24 Sep 2002 14:39:02 +0200 + +pydb (1.01-6) unstable; urgency=low + + * Fix manpage (point to /usr/lib/python2.1/pdb.doc). + + -- Gregor Hoffleit Sun, 14 Apr 2002 13:44:55 +0200 + +pydb (1.01-5) unstable; urgency=low + + * Remove python1.5ism in postinst script (closes: #133520). + + -- Gregor Hoffleit Tue, 12 Feb 2002 19:21:49 +0100 + +pydb (1.01-4) unstable; urgency=high + + * Remove use of newdir, which is obsolete since Python 1.5 (apply a patch + from ddd/pydb) (closes: #127408). + * Make the package use Python 2.1. + + -- Gregor Hoffleit Thu, 24 Jan 2002 15:18:00 +0100 + +pydb (1.01-3) unstable; urgency=low + + * Repackaged to depend on python1.5 (closes: #119203). + + -- Gregor Hoffleit Thu, 13 Dec 2001 15:42:54 +0100 + +pydb (1.01-2) unstable; urgency=low + + * Updated package for policy 3.1.1: + - FHS transition of docs + - Build-Depends + (closes: #80319). + * Added hint to the menu file (closes: #80244). + + -- Gregor Hoffleit Mon, 25 Dec 2000 22:41:32 +0100 + +pydb (1.01-1) unstable; urgency=low + + * Initial Release. + * pydbcmd.py: Included functions from newdir.py, which is no + longer included in Python. + + -- Gregor Hoffleit Sun, 22 Aug 1999 23:02:50 +0200 --- pydb-1.01.orig/debian/README.Debian +++ pydb-1.01/debian/README.Debian @@ -0,0 +1,7 @@ + + pydb for Debian + --------------- + + + + -- Gregor Hoffleit , Sun, 22 Aug 1999 23:02:50 +0200 --- pydb-1.01.orig/debian/copyright +++ pydb-1.01/debian/copyright @@ -0,0 +1,74 @@ +This package was debianized by Gregor Hoffleit on +Sun, 22 Aug 1999 23:02:50 +0200. + +It was downloaded from http://daikon.tuc.noao.edu/python/. + +Upstream Author: Richard Wolff + +Copyright: + +pydb.py is based on pdb.py, which is distributed with Python. The Python +license is included below. According to the author of the modifications, +his modifications and additions are also relased under the terms of the +Python license. I think this will be clarified in one of the next +releases: + + Date: Sun, 22 Aug 1999 15:58:03 -0700 (MST) + From: rwolff@noao.edu (Richard Wolff) + Message-Id: <199908222258.PAA06590@daikon.tuc.noao.edu> + To: flight@mathi.uni-heidelberg.de + Subject: Re: pydb license ? + X-Sun-Charset: US-ASCII + Status: RO + Content-Length: 432 + Lines: 11 + + I am completely ignorant of all the real ins-and-outs of the world of + licensing. So I'm not sure what verbiage is really appropriate. However, + I've added a "License" file to my Python directory at my site that says + + All pydb code is released under the same terms and conditions as the + Python license. + + If that's all you need, fine. If there's more, you'll probably have to tell + me what to write and where to put it. + + Richard + + + +The license of the Python source is as follows: +---------------------------------------------- + + +The Python source is copyrighted, but you can freely use and copy it +as long as you don't change or remove the copyright notice: + +---------------------------------------------------------------------- +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, +The Netherlands. + + All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the names of Stichting Mathematisch +Centrum or CWI or Corporation for National Research Initiatives or +CNRI not be used in advertising or publicity pertaining to +distribution of the software without specific, written prior +permission. + +While CWI is the initial source for this software, a modified version +is made available by the Corporation for National Research Initiatives +(CNRI) at the Internet address ftp://ftp.python.org. + +STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH +CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL +DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR +PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. --- pydb-1.01.orig/debian/postinst.debhelper +++ pydb-1.01/debian/postinst.debhelper @@ -0,0 +1,15 @@ +# Automatically added by dh_installmenu +if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then + update-menus +fi +# End automatically added section +# Automatically added by dh_python +PYTHON=python2.3 +if which $PYTHON >/dev/null 2>&1 && [ -e /usr/lib/$PYTHON/compileall.py ]; then + DIRLIST=" /usr/lib/python2.3/site-packages" + for i in $DIRLIST ; do + $PYTHON -O /usr/lib/$PYTHON/compileall.py -q $i + $PYTHON /usr/lib/$PYTHON/compileall.py -q $i + done +fi +# End automatically added section --- pydb-1.01.orig/debian/postrm.debhelper +++ pydb-1.01/debian/postrm.debhelper @@ -0,0 +1,3 @@ +# Automatically added by dh_installmenu +if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi +# End automatically added section --- pydb-1.01.orig/debian/prerm.debhelper +++ pydb-1.01/debian/prerm.debhelper @@ -0,0 +1,5 @@ +# Automatically added by dh_python +dpkg -L pydb | + awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | + xargs rm -f >&2 +# End automatically added section --- pydb-1.01.orig/debian/substvars +++ pydb-1.01/debian/substvars @@ -0,0 +1 @@ +python:Depends=python (>= 2.3), python (<< 2.4) --- pydb-1.01.orig/debian/compat +++ pydb-1.01/debian/compat @@ -0,0 +1 @@ +5