/[soft]/mga-gnome/trunk/mga-gnome
ViewVC logotype

Diff of /mga-gnome/trunk/mga-gnome

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6243 by ovitters, Tue Oct 16 07:57:27 2012 UTC revision 6244 by ovitters, Tue Oct 16 08:08:09 2012 UTC
# Line 782  def cmd_package_new_version(options, par Line 782  def cmd_package_new_version(options, par
782              print >>sys.stderr, "ERROR: Cannot determine source file (for hash check)!"              print >>sys.stderr, "ERROR: Cannot determine source file (for hash check)!"
783              sys.stderr(1)              sys.stderr(1)
784    
785            # If there are multiple sources, try to see if there is a preferred name
786            # --> needed for metacity hash check (multiple tarball sources)
787            if len(sources) > 1:
788                preferred_name = '%s-%s.tar.xz' % (package, options.version)
789                if preferred_name in sources:
790                    sources = [preferred_name]
791    
792          for filename in sources:          for filename in sources:
793              path = os.path.join(cwd, "SOURCES", filename)              path = os.path.join(cwd, "SOURCES", filename)
794              if not is_valid_hash(path, options.algo, options.hexdigest):              if not is_valid_hash(path, options.algo, options.hexdigest):

Legend:
Removed from v.6243  
changed lines
  Added in v.6244

  ViewVC Help
Powered by ViewVC 1.1.30