File tree Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- SCM=" ~/projects/samba/samba-perf"
4
- PKG=" ~/projects/fedora/samba"
5
- REPO=" ~/repo /f23/x86_64"
3
+ SCM=~ /projects/samba/samba-perf
4
+ PKG=~ /projects/fedora/samba
5
+ REPO=~ /repos /f23/x86_64
6
6
REPO_NAME=" jarrpa"
7
7
8
8
MOCK_OPTS=" --no-clean --without=configure --nocheck --no-cleanup-after"
@@ -21,27 +21,18 @@ RELEASE=$(grep "define main_release" samba.spec | awk '{print $3}')
21
21
SRPM=" samba-${VERSION} -${RELEASE} .fc23.src.rpm"
22
22
23
23
if [ -f " ${REPO} /${SRPM} " ]; then
24
- OLD_MD5= ` md5sum ${REPO} / ${SRPM} | awk ' {print $1}' `
24
+ CMD= " SAMBA_PKGS= ` dnf -C list installed | grep \" samba \\\| ctdb \\\| libwb \\\| libsmb \" | awk ' {print $1}' ` ; sudo dnf reinstall \$ SAMBA_PKGS "
25
25
else
26
- OLD_MD5= " "
26
+ CMD= " sudo dnf --disablerepo=* --enablerepo= ${REPO_NAME} update "
27
27
fi
28
28
29
29
pushd $SCM
30
30
git archive --format=tar.gz --prefix=samba-${VERSION} / HEAD -o $PKG /samba-${VERSION} .tar.gz
31
31
popd
32
32
33
33
fedpkg --dist f23 srpm
34
+ sudo mock ${MOCK_OPTS} -r f23-x86_64 rebuild ${SRPM}
34
35
35
- NEW_MD5=` md5sum ${SRPM} | awk ' {print $1}' `
36
-
37
- if [ " ${NEW_MD5} " != " ${OLD_MD5} " ]; then
38
- echo " sudo mock ${MOCK_OPTS} -r f23-x86_64 rebuild ${SRPM} "
39
- sudo mock ${MOCK_OPTS} -r f23-x86_64 rebuild ${SRPM}
40
- popd
41
- if [ " x${OLD_MD5} " != " x" ]; then
42
- CMD=" SAMBA_PKGS=` dnf list installed | grep \" samba\\\| ctdb\\\| libwb\\\| libsmb\" | awk ' {print $1}' ` ; sudo dnf reinstall ${SAMBA_PKGS} "
43
- else
44
- CMD=" sudo dnf --disablerepo=* --enablerepo=${REPO_NAME} update"
45
- fi
46
- ./scripts/hark-a-vagrant.sh ${CMD}
47
- fi
36
+ popd
37
+
38
+ ./scripts/hark-a-vagrant.sh ${CMD}
You can’t perform that action at this time.
0 commit comments