old_contents: #!/usr/bin/python
  # Licensed under the GNU General Public License Version 2
  #
  # This program is free software; you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
  # the Free Software Foundation; either version 2 of the License, or
  # (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with this program; if not, write to the Free Software
  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
  # Copyright (C) 2009-2013
  #    Richard Hughes <richard@hughsie.com>
  #
  
  import glob
  import os
  import shutil
  import fedoraAppstreamBuild
  from subprocess import call
  
  def main():
  
      # remove appstream
      if os.path.exists('./appstream'):
          shutil.rmtree('./appstream')
      if os.path.exists('./icons'):
          shutil.rmtree('./icons')
  
      files = glob.glob("./packages/*.rpm")
      files.sort()
  
      job = fedoraAppstreamBuild.AppstreamBuild()
      for f in files:
          try:
              job.build(f)
          except Exception as e:
              print e
              break
  
  if __name__ == "__main__":
      main()
  
new_contents: #!/usr/bin/python
  # Licensed under the GNU General Public License Version 2
  #
  # This program is free software; you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
  # the Free Software Foundation; either version 2 of the License, or
  # (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with this program; if not, write to the Free Software
  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
  # Copyright (C) 2009-2013
  #    Richard Hughes <richard@hughsie.com>
  #
  
  import glob
  import os
  import shutil
  import fedoraAppstreamBuildPkg
  from subprocess import call
  
  def main():
  
      # remove appstream
      if os.path.exists('./appstream'):
          shutil.rmtree('./appstream')
      if os.path.exists('./icons'):
          shutil.rmtree('./icons')
  
      files = glob.glob("./packages/*.rpm")
      files.sort()
  
      job = fedoraAppstreamBuildPkg.AppstreamBuild()
      for f in files:
          try:
              job.build(f)
          except Exception as e:
              print e
              break
  
  if __name__ == "__main__":
      main()
  
subject: Fix warnings from pylint