Просмотр исходного кода

Fix distclean by only running a chmod if the target dir exists

Guillem Jover лет назад: 18
Родитель
Сommit
44c4fb762f
2 измененных файлов с 5 добавлено и 1 удалено
  1. 4 0
      ChangeLog
  2. 1 1
      scripts/Makefile.am

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2007-11-24  Guillem Jover  <guillem@debian.org>
+
+	* scripts/Makefile.am (clean-local): Run chmod only if t.tmp exists.
+
 2007-11-24  Guillem Jover  <guillem@debian.org>
 
 	* scripts/dpkg-scanpackages.pl (%vercache): Declare with 'my' instead

+ 1 - 1
scripts/Makefile.am

@@ -142,7 +142,7 @@ TEST_FILES= $(srcdir)/t/*.t
 TEST_VERBOSE= 0
 
 clean-local:
-	chmod -R +w t.tmp
+	[ ! -d t.tmp ] || chmod -R +w t.tmp
 	rm -fr t.tmp
 
 check: $(TEST_FILES) $(wildcard $(srcdir)/t/200_Dpkg_Shlibs/ld.so.conf*)