~reprepro-alioth/reprepro/main

« back to all changes in this revision

Viewing changes to main.c

  • Committer: brlink
  • Date: 2011-02-14 20:57:00 UTC
  • Revision ID: brlink-20110214205700-uo0zp20jazr22rlm
add 'reportcruft' command

Show diffs side-by-side

added added

removed removed

Lines of Context:
3555
3555
                return r;
3556
3556
        return sourcemissing(database, alldistributions);
3557
3557
}
 
3558
/*********************** reportcruft ****************************/
 
3559
ACTION_B(n, n, y, reportcruft) {
 
3560
        retvalue r;
 
3561
 
 
3562
        r = distribution_match(alldistributions, argc-1, argv+1,
 
3563
                        false, READONLY);
 
3564
        assert( r != RET_NOTHING );
 
3565
        if( RET_WAS_ERROR(r) )
 
3566
                return r;
 
3567
        return reportcruft(database, alldistributions);
 
3568
}
3558
3569
 
3559
3570
/*********************/
3560
3571
/* argument handling */
3762
3773
                0, -1, "unusedsources [<codenames>]"},
3763
3774
        {"sourcemissing",       A_B(sourcemissing),
3764
3775
                0, -1, "sourcemissing [<codenames>]"},
 
3776
        {"reportcruft",         A_B(reportcruft),
 
3777
                0, -1, "reportcruft [<codenames>]"},
3765
3778
        {NULL,NULL,0,0,0,NULL}
3766
3779
};
3767
3780
#undef A_N