Skip to content

Commit e94e375

Browse files
committed
fix: fix compare function
1 parent c26efb4 commit e94e375

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/debian-repository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export default class DebianRepository {
489489

490490
// sort dists
491491
dists = dists.sort( ( a, b ) => {
492-
return a.epoch - b.epoch || SemanticVersion.new( a.version ).compare( b.version ) || a.revision - b.revision;
492+
return a.epoch - b.epoch || SemanticVersion.compare( a.version, b.version ) || a.revision - b.revision;
493493
} );
494494

495495
// keep latest dist

0 commit comments

Comments
 (0)