SF.net SVN: gar:[22210] csw/mgar/gar/v2
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Oct 14 15:42:49 CEST 2013
Revision: 22210
http://gar.svn.sourceforge.net/gar/?rev=22210&view=rev
Author: wahwah
Date: 2013-10-14 13:42:49 +0000 (Mon, 14 Oct 2013)
Log Message:
-----------
chkdbcat: Small (whitespace) changes
Modified Paths:
--------------
csw/mgar/gar/v2/bin/chkdbcat
csw/mgar/gar/v2/lib/python/chkdbcat.py
Modified: csw/mgar/gar/v2/bin/chkdbcat
===================================================================
--- csw/mgar/gar/v2/bin/chkdbcat 2013-10-14 13:42:28 UTC (rev 22209)
+++ csw/mgar/gar/v2/bin/chkdbcat 2013-10-14 13:42:49 UTC (rev 22210)
@@ -46,7 +46,7 @@
print("Database Catalog {0} {2} {1}: FAILED".format(args.catalog_release, args.arch, args.os_release))
print("chkcat output")
print checker.stderr
-
+
exit(0) if success else exit(1)
if __name__ == '__main__':
Modified: csw/mgar/gar/v2/lib/python/chkdbcat.py
===================================================================
--- csw/mgar/gar/v2/lib/python/chkdbcat.py 2013-10-14 13:42:28 UTC (rev 22209)
+++ csw/mgar/gar/v2/lib/python/chkdbcat.py 2013-10-14 13:42:49 UTC (rev 22210)
@@ -115,7 +115,7 @@
"""Set time stamp for a given catrel, arch, and osrel.
If date is an instance of datetime, the value obtained by
- calling isoformat() will be stored.
+ calling isoformat() will be stored.
If date is an instance of str, it has to be a date in iso format.
@@ -144,7 +144,7 @@
# Mapping of key name to list index with optional transformation.
# Used by __list_to_dict_generator()
- __list_to_dict_translation = (
+ __list_to_dict_translation = (
('pkg', 0),
('version', 1),
('spkg', 2),
@@ -205,7 +205,6 @@
. . .
]
-
Output is a list of dictionaries:
[
@@ -310,7 +309,7 @@
logging.debug("Remove tmp directory %s" % (self.tmpdir,))
shutil.rmtree(self.tmpdir)
self.tmpdir = None
-
+
def __get_notification_address(self, pkginfo):
"""Returns the address where the notification will be sent to.
@@ -322,7 +321,7 @@
if pkginfo['uploadby'] is not None and pkginfo['uploadby'] != "web":
return pkginfo['uploadby']+'@opencsw.org'
else:
- return RestClient().GetMaintainerByMd5(pkginfo['md5'])['maintainer_email']
+ return RestClient().GetMaintainerByMd5(pkginfo['md5'])['maintainer_email']
def notify(self, date, addr, pkginfo):
"""Notification.
@@ -402,7 +401,7 @@
addr=self.__get_notification_address(np)
notifications.setdefault(addr,{ 'lastsuccessful': lastsuccessful })
notifications[addr].setdefault('newpkgs', []).append(np)
-
+
for n in notifications:
self.notify(notifications[n]['lastsuccessful'], n, notifications[n]['newpkgs'])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list