+
Skip to content

Find duplicates #19

@rshipp

Description

@rshipp

I've had this script for a while, but didn't think about including it in ccr-tools until just now.
http://paste.chakra-project.org/1446/
It find duplicates of official packages that are in the CCR with the same name, and gives a colorized report of what it found, that looks something like this:

$ ccrdups 
colordiff is a duplicate! It exists in both the CCR and [testing]
  The version in CCR is 1.0.9-1; the version in the repos is 1.0.9-1 (Both are the same)
lesspipe is a duplicate! It exists in both the CCR and [testing]
  The version in CCR is 1.72-1; the version in the repos is 1.72-1 (Both are the same)
packagekit-python is a duplicate! It exists in both the CCR and [testing]
  The version in CCR is 0.7.1-1; the version in the repos is 0.6.22-1 (CCR package is newer)
zramswap is a duplicate! It exists in both the CCR and [testing]
  The version in CCR is 0.2-1; the version in the repos is 0.2-1 (Both are the same)

Total duplicates: 4

The script is very slow, so if you can think of a better way to implement the same function, that would be good.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载