[Python-apps-commits] r2678 - in packages/wicd/trunk/debian (2 files)

hanska-guest at users.alioth.debian.org hanska-guest at users.alioth.debian.org
Fri Apr 3 14:01:17 UTC 2009


    Date: Friday, April 3, 2009 @ 14:01:14
  Author: hanska-guest
Revision: 2678

debian/patches/11-add_results_to_EndScanSignal.patch removed,
ask asked by denever on IRC

Modified:
  packages/wicd/trunk/debian/changelog
Deleted:
  packages/wicd/trunk/debian/patches/11-add_results_to_EndScanSignal.patch

Modified: packages/wicd/trunk/debian/changelog
===================================================================
--- packages/wicd/trunk/debian/changelog	2009-04-03 00:29:17 UTC (rev 2677)
+++ packages/wicd/trunk/debian/changelog	2009-04-03 14:01:14 UTC (rev 2678)
@@ -5,8 +5,6 @@
   * debian/patches/10-add_udhcpc_support.patch added, thanks to "madmo"
     from the Wicd forums for making it, and to Luca Capello for fixing 
     and porting it (Closes: #520014)
-  * debian/patches/11-add_results_to_EndScanSignal.patch added, thanks to
-    Giuseppe "denever" Martino (Closes: #522204)
 
  -- David Paleino <d.paleino at gmail.com>  Wed, 01 Apr 2009 20:37:23 +0200
 

Deleted: packages/wicd/trunk/debian/patches/11-add_results_to_EndScanSignal.patch
===================================================================
--- packages/wicd/trunk/debian/patches/11-add_results_to_EndScanSignal.patch	2009-04-03 00:29:17 UTC (rev 2677)
+++ packages/wicd/trunk/debian/patches/11-add_results_to_EndScanSignal.patch	2009-04-03 14:01:14 UTC (rev 2678)
@@ -1,131 +0,0 @@
-Add results of the scan to the EndScanSignal.
-Thanks to Giuseppe 'denever' Martino <denever at truelite.it>
----
- wicd/networking.py  |    5 +++--
- wicd/wicd-daemon.py |   14 ++++++++++++--
- wicd/wnettools.py   |   18 +++++++++++++++---
- 3 files changed, 30 insertions(+), 7 deletions(-)
-
---- wicd-1.5.9.orig/wicd/networking.py
-+++ wicd-1.5.9/wicd/networking.py
-@@ -424,10 +424,11 @@ class Wireless(Controller):
-             print 'Setting hidden essid' + essid
-             wiface.SetEssid(essid)
- 
--        aps = wiface.GetNetworks()
-+        aps, stripped_aps = wiface.GetNetworks()
-         aps.sort(cmp=comp, reverse=True)
-+        stripped_aps.sort(cmp=comp, reverse=True)
-         
--        return aps
-+        return aps, stripped_aps
- 
-     def Connect(self, network, debug=False):
-         """ Spawn a connection thread to connect to the network.
---- wicd-1.5.9.orig/wicd/wicd-daemon.py
-+++ wicd-1.5.9/wicd/wicd-daemon.py
-@@ -691,6 +691,16 @@ class ConnectionWizard(dbus.service.Obje
-         """ Emits a signal announcing a scan has finished. """
-         pass
- 
-+    @dbus.service.method('org.wicd.daemon')
-+    def EmitEndScanSignalWithResult(self, scan):
-+        print scan
-+        self.EndScanSignalWithResult(scan)
-+
-+    @dbus.service.signal(dbus_interface='org.wicd.daemon', signature='aa{sv}')
-+    def EndScanSignalWithResult(self, scan):
-+        """ Emits a signal announcing a scan has finished. """
-+        pass
-+
-     ########## WIRELESS FUNCTIONS
-     #################################
- 
-@@ -711,14 +721,14 @@ class ConnectionWizard(dbus.service.Obje
-             print 'scanning start'
-         self.SendStartScanSignal()
-         time.sleep(.2)
--        scan = self.wifi.Scan(str(self.hidden_essid))
-+        scan, scan_stripped = self.wifi.Scan(str(self.hidden_essid))
-         self.LastScan = scan
-         if self.debug_mode:
-             print 'scanning done'
-             print 'found ' + str(len(scan)) + ' networks:'
-         for i, network in enumerate(scan):
-             self.ReadWirelessNetworkProfile(i)
--        self.SendEndScanSignal()
-+        self.EmitEndScanSignalWithResult(scan_stripped)
- 
-     @dbus.service.method('org.wicd.daemon.wireless')
-     def GetIwconfig(self):
---- wicd-1.5.9.orig/wicd/wnettools.py
-+++ wicd-1.5.9/wicd/wnettools.py
-@@ -824,15 +824,19 @@ class WirelessInterface(Interface):
- 
-         # An array for the access points
-         access_points = []
-+        stripped_access_points = []
-         for cell in networks:
-             # Only use sections where there is an ESSID.
-             if 'ESSID:' in cell:
-                 # Add this network to the list of networks
--                entry = self._ParseAccessPoint(cell, ralink_info)
-+                entry, stripped_entry = self._ParseAccessPoint(cell, ralink_info)
-                 if entry is not None:
-                     access_points.append(entry)
- 
--        return access_points
-+                if stripped_entry is not None:
-+                    stripped_access_points.append(entry_stripped)
-+
-+        return access_points, stripped_access_points
- 
-     def _FreqToChannel(self, freq):
-         """ Translate the specified frequency to a channel.
-@@ -927,6 +931,7 @@ class WirelessInterface(Interface):
- 
-         """
-         ap = {}
-+        stripped_ap = {}
-         # ESSID - Switch '<hidden>' to 'Hidden' to remove
-         # brackets that can mix up formatting.
-         ap['essid'] = misc.RunRegex(essid_pattern, cell)
-@@ -941,6 +946,8 @@ class WirelessInterface(Interface):
-         else:
-             ap['hidden'] = False
- 
-+        stripped_ap['essid'] = ap['essid']
-+
-         # Channel - For cards that don't have a channel number,
-         # convert the frequency.
-         ap['channel'] = misc.RunRegex(channel_pattern, cell)
-@@ -970,8 +977,11 @@ class WirelessInterface(Interface):
- 
-             if misc.RunRegex(wpa2_pattern, cell) == 'WPA2':
-                 ap['encryption_method'] = 'WPA2'
-+
-+            stripped_ap['encryption_method'] = ap['encryption_method']
-         else:
-             ap['encryption'] = False
-+            stripped_ap['encryption_method'] = 'Open'
- 
-         # Link Quality
-         # Set strength to -1 if the quality is not found
-@@ -993,6 +1003,8 @@ class WirelessInterface(Interface):
-         else:
-             ap['quality'] = -1
- 
-+        stripped_ap['quality'] = ap['quality']
-+
-         # Signal Strength (only used if user doesn't want link
-         # quality displayed or it isn't found)
-         if misc.RunRegex(signaldbm_pattern, cell):
-@@ -1000,7 +1012,7 @@ class WirelessInterface(Interface):
-         elif self.wpa_driver != RALINK_DRIVER:  # This is already set for ralink
-             ap['strength'] = -1
- 
--        return ap
-+        return ap, stripped_ap
- 
-     def _ParseRalinkAccessPoint(self, ap, ralink_info, cell):
-         """ Parse encryption and signal strength info for ralink cards




More information about the Python-apps-commits mailing list