)
logger.debug(os.listdir('./'))
logger.debug(os.listdir('../'))
- #create_dput_cfg()
- #dput_package_upload()
+ create_dput_cfg()
+ dput_package_upload()
exit_ok()
-#class GitBuildPackage(object):
-# def __init__(self, upstream_branch=None,
-# debian_branch=None, dist=None, arch=None)
-
- #ftp = FTP(
- # 'alexandria.profitbricks.localdomain',
- # 'debian-uploader',
- # 'vae6tooZe1ec'
- #)
-#
- #logger.info('Log in on %s successfull' %(ftp.host))
-#
- #ftp.cwd('squeeze')
- #for package in glob(
- # os.path.join(GIT_TARGET_WORKSPACE, '*.deb')
- #):
- # fh = open(package, 'rb', 1)
- # ftp.storbinary(
- # 'STOR %s' %(os.path.basename(package)),
- # fh
- # )
- # fh.close()
- # logger.info('Successfully uploaded %s' %(package))
- #ftp.quit()
+class GitBuildPackage(object):
+ def __init__(self, upstream_branch=None,
+ debian_branch=None, dist=None, arch=None)
+
+ ftp = FTP(
+ 'alexandria.profitbricks.localdomain',
+ 'debian-uploader',
+ 'vae6tooZe1ec'
+ )
+
+ logger.info('Log in on %s successfull' %(ftp.host))
+
+ ftp.cwd('experimental')
+ for package in glob(
+ os.path.join(GIT_TARGET_WORKSPACE, '*.deb')
+ ):
+ fh = open(package, 'rb', 1)
+ ftp.storbinary(
+ 'STOR %s' %(os.path.basename(package)),
+ fh
+ )
+ fh.close()
+ logger.info('Successfully uploaded %s' %(package))
+ ftp.quit()
exit_ok()