Skip to content

Commit 0110773

Browse files
author
Kalle Viironen
committed
Merge branch 'stable' into dev
* stable: Check git hash/tag only if we are in git repo Sync filesystems after modification Change copyright to 2014 Change-Id: I9cc9f9f1f6dcf8d2e7ba68e1c6bffc78b1a6987d
2 parents 94d952e + 602acb2 commit 0110773

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

appcontroller.pro

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ android {
1717
INSTALLS+=target
1818

1919
# Find out git hash
20-
unix:system(which git):HAS_GIT=TRUE
21-
win32:system(where git.exe):HAS_GIT=TRUE
22-
contains(HAS_GIT, TRUE) {
23-
GIT_HASH=$$system(git log -1 --format=%H)
24-
!system(git diff-index --quiet HEAD): GIT_HASH="$$GIT_HASH-dirty"
25-
GIT_VERSION=$$system(git describe --tags --exact-match)
26-
isEmpty(GIT_VERSION) : GIT_VERSION="unknown"
20+
exists(.git) {
21+
unix:system(which git):HAS_GIT=TRUE
22+
win32:system(where git.exe):HAS_GIT=TRUE
23+
contains(HAS_GIT, TRUE) {
24+
GIT_HASH=$$system(git log -1 --format=%H)
25+
!system(git diff-index --quiet HEAD): GIT_HASH="$$GIT_HASH-dirty"
26+
GIT_VERSION=$$system(git describe --tags --exact-match)
27+
isEmpty(GIT_VERSION) : GIT_VERSION="unknown"
28+
}
2729
} else {
2830
GIT_HASH="unknown"
2931
GIT_VERSION="unknown"

main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/****************************************************************************
22
**
3-
** Copyright (C) 2013 Digia Plc
3+
** Copyright (C) 2014 Digia Plc
44
** All rights reserved.
55
** For any questions to Digia, please use contact form at http://qt.digia.com
66
**
@@ -187,6 +187,7 @@ static bool removeDefault()
187187
fprintf(stderr, "Could not remove default application.\n");
188188
return false;
189189
}
190+
sync();
190191
}
191192
return true;
192193
}
@@ -207,6 +208,7 @@ static bool makeDefault(const QString &filepath)
207208
fprintf(stderr, "Could not link default application.\n");
208209
return false;
209210
}
211+
sync();
210212
return true;
211213
}
212214

portlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/****************************************************************************
22
**
3-
** Copyright (C) 2013 Digia Plc
3+
** Copyright (C) 2014 Digia Plc
44
** All rights reserved.
55
** For any questions to Digia, please use contact form at http://qt.digia.com
66
**

portlist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/****************************************************************************
22
**
3-
** Copyright (C) 2013 Digia Plc
3+
** Copyright (C) 2014 Digia Plc
44
** All rights reserved.
55
** For any questions to Digia, please use contact form at http://qt.digia.com
66
**

process.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/****************************************************************************
22
**
3-
** Copyright (C) 2013 Digia Plc
3+
** Copyright (C) 2014 Digia Plc
44
** All rights reserved.
55
** For any questions to Digia, please use contact form at http://qt.digia.com
66
**

process.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/****************************************************************************
22
**
3-
** Copyright (C) 2013 Digia Plc
3+
** Copyright (C) 2014 Digia Plc
44
** All rights reserved.
55
** For any questions to Digia, please use contact form at http://qt.digia.com
66
**

0 commit comments

Comments
 (0)