[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gsrc-commit] /srv/bzr/gsrc/trunk r2393: print negative messages too for
From: |
Brandon Invergo |
Subject: |
[Gsrc-commit] /srv/bzr/gsrc/trunk r2393: print negative messages too for (re)install-p |
Date: |
Wed, 22 May 2013 22:35:06 +0200 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 2393
committer: Brandon Invergo <address@hidden>
branch nick: trunk
timestamp: Wed 2013-05-22 22:35:06 +0200
message:
print negative messages too for (re)install-p
modified:
ChangeLog
gar.mk
=== modified file 'ChangeLog'
--- a/ChangeLog 2013-04-13 08:41:59 +0000
+++ b/ChangeLog 2013-05-22 20:35:06 +0000
@@ -1,3 +1,9 @@
+2013-05-22 Brandon Invergo <address@hidden>
+
+ * gar.mk (install-p): Print a message when a package is not
+ installed
+ (reinstall-p): Print a message when a package is not stowed
+
2013-04-13 Brandon Invergo <address@hidden>
* gar.mk (pkg-info): Handle URLs and BLURBS that might have "%"
=== modified file 'gar.mk'
--- a/gar.mk 2013-04-25 15:04:44 +0000
+++ b/gar.mk 2013-05-22 20:35:06 +0000
@@ -302,12 +302,15 @@
# otherwise
install-p:
test -h $(dotgardir)/VERSION && \
- test "`readlink $(dotgardir)/VERSION`" = $(PACKAGENAME) && \
- printf "[$(OK)install-p$(OFF)] $(MSG)$(PACKAGENAME) is
installed$(OFF)\n"
+ (test "`readlink $(dotgardir)/VERSION`" = $(PACKAGENAME) && \
+ printf "[$(OK)install-p$(OFF)] $(MSG)$(PACKAGENAME) is
installed$(OFF)\n") || \
+ (printf "[$(ERR)install-p$(OFF)] $(MSG)$(PACKAGENAME) is not
installed$(OFF)\n" && exit 1) \
reinstall-p:
- test -d $(packagesdir)/$(PACKAGENAME) && \
- printf "[$(OK)reinstall-p$(OFF)] $(MSG)$(PACKAGENAME) is
available to be reinstalled$(OFF)\n"
+ (test -d $(packagesdir)/$(PACKAGENAME) && \
+ printf "[$(OK)reinstall-p$(OFF)] $(MSG)$(PACKAGENAME) is
available to be reinstalled$(OFF)\n") || \
+ (printf "[$(ERR)reinstall-p$(OFF)] $(MSG)$(PACKAGENAME) is not
available to be reinstalled$(OFF)\n" && \
+ exit 1)
reinstall: $(addprefix dep-$(GARDIR)/,$(LIBDEPS)) $(addprefix
sysinstall-,$(filter-out $(SYSINSTALL_IGNORE),$(SYSINSTALL_TARGETS)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gsrc-commit] /srv/bzr/gsrc/trunk r2393: print negative messages too for (re)install-p,
Brandon Invergo <=