File: 01_report_bugs_as_debian.dpatch

package info (click to toggle)
w3af 1.0-rc3svn3489-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 59,908 kB
  • ctags: 16,916
  • sloc: python: 136,990; xml: 63,472; sh: 153; ruby: 94; makefile: 40; asm: 35; jsp: 32; perl: 18; php: 5
file content (21 lines) | stat: -rw-r--r-- 1,019 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_report_bugs_as_debian.dpatch by Luciano Bello <luciano@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Indicates that the version cames from a Debian Package 
## DP: TODO: include the Debian Package Version

@DPATCH@
diff -urNad w3af-0.0.0svn2722~/core/controllers/misc/get_w3af_version.py w3af-0.0.0svn2722/core/controllers/misc/get_w3af_version.py
--- w3af-0.0.0svn2722~/core/controllers/misc/get_w3af_version.py	2009-03-02 15:37:47.000000000 -0200
+++ w3af-0.0.0svn2722/core/controllers/misc/get_w3af_version.py	2009-03-02 16:02:16.000000000 -0200
@@ -47,6 +47,8 @@
         res += ' (from SVN server)'
         res += '\nRevision: ' + str(revision)
     else:
-        res += ' (from tgz)'
+        res += ' (from Debian Package '
+        import commands
+        res += commands.getstatusoutput('dpkg -p w3af-console | grep "Version:"')[1][9:] + ')'
     res += '\nAuthor: Andres Riancho and the w3af team.'
     return res