Skip to content

Commit 917b749

Browse files
committed
Merge pull request #3 from photoninger/master
additional features and correct time difference calculation
2 parents ea2afc7 + ad491dd commit 917b749

File tree

2 files changed

+232
-196
lines changed

2 files changed

+232
-196
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ Options:
6565
critical threshold in hours (default: 48)
6666
-f, --full-output displays the names of successfully synchronized
6767
channels
68+
-p POSFILTER, --positive-filter=POSFILTER
69+
only channels containing POSFILTER are checked.
70+
POSFILTER is evaluated before NEGFILTER
71+
(in combination with -e / --all-channels)
72+
-n NEGFILTER, --negative-filter=NEGFILTER
73+
channels containing NEGFILTER are ignored.
74+
NEGFILTER is evaluated after POSFILTER
75+
(in combination with -e / --all-channels)
6876
```
6977

7078

@@ -95,6 +103,12 @@ $ ./check_repodata.py -e -a myauthfile -x "centos7-x86_64,epel-el7-x86_64"
95103
OK: Specified channels (2) are synchronized
96104
```
97105

106+
Check sync status for all repositories found on the server (*using authfile*) and filesystem, but only centos, and excluding channels containing the string 'test':
107+
```
108+
$ ./check_repodata.py -e -a myauthfile -p centos -n test
109+
OK: Specified channels (4) are synchronized
110+
```
111+
98112
Debugging repo sync state checks, full output is enabled:
99113
```
100114
$ ./check_repodata.py -l epel-el6-x86_64 -df

0 commit comments

Comments
 (0)