File: 02_empty_set.dpatch

package info (click to toggle)
releaseforge 1.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,088 kB
  • ctags: 1,239
  • sloc: python: 13,801; makefile: 68; sh: 32
file content (25 lines) | stat: -rw-r--r-- 946 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
22
23
24
25
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_empty_set.dpatch by  <roberto@familiasanchez.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixes return of non-existent variable

@DPATCH@

diff -uNr releaseforge-1.1.orig/ReleaseForge/sfcomm.py releaseforge-1.1/ReleaseForge/sfcomm.py
--- releaseforge-1.1.orig/ReleaseForge/sfcomm.py	2006-06-15 05:49:44.000000000 -0400
+++ releaseforge-1.1/ReleaseForge/sfcomm.py	2006-08-03 18:28:07.099087126 -0400
@@ -169,12 +169,12 @@
         cj.save(self.cookie_file, True, True) # ignore discard! ignore expires
         
         data = r.read()
+        projects = set()
         idx = data.find("Invalid Password or User Name")
         if idx != -1:
             debug("Could not login")
             return projects
 
-        projects = set()
         #debug(data)
         project_tuples = PROJECTS_FROM_MY_PROJECTS.findall(data)
         for pt in project_tuples: