updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / repo-clean-xz / repo_clean_xz_20110410.patch
blob5a61e3ed42a84a5ece3fd9eebfd110b0578903ac
1 diff -ur repo-clean-0.1.3.orig/Sconstruct repo-clean-0.1.3/Sconstruct
2 --- repo-clean-0.1.3.orig/Sconstruct 2009-06-03 23:19:34.000000000 +0600
3 +++ repo-clean-0.1.3/Sconstruct 2011-04-10 00:20:12.840000656 +0600
4 @@ -22,7 +22,7 @@
5 else:
6 ccflags += release_flags
8 -BuildDir('build', 'src', duplicate=0)
9 +VariantDir('build', 'src', duplicate=0)
11 env = Environment()
13 diff -ur repo-clean-0.1.3.orig/src/repo-clean.cpp repo-clean-0.1.3/src/repo-clean.cpp
14 --- repo-clean-0.1.3.orig/src/repo-clean.cpp 2009-06-03 23:19:34.000000000 +0600
15 +++ repo-clean-0.1.3/src/repo-clean.cpp 2011-04-10 00:19:03.906667320 +0600
16 @@ -105,6 +105,7 @@
17 #define BOOST_VERSION_SUBMINOR BOOST_VERSION % 100
19 std::string package_suffix = ".pkg.tar.gz";
20 +std::string package_suffix2 = ".pkg.tar.xz";
21 clean_mode mode = MODE_DRY;
22 move_to_existig_mode move_mode = MODE_ERROR;
23 messages_level msgs = MSG_VERBOSE;
24 @@ -619,9 +620,12 @@
25 #if BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR < 36
26 string_list sublist = build_pkg_list(source_directory + "/" + dir_iter->leaf(),
27 recursive);
28 -#else
29 +#elseif BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR >= 36 and BOOST_VERSION_MINOR < 46
30 string_list sublist = build_pkg_list(source_directory + "/" + dir_iter->filename(),
31 recursive);
32 +#else //BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR >= 46
33 + string_list sublist = build_pkg_list(source_directory + "/" + dir_iter->path().filename().string(),
34 + recursive);
35 #endif
36 list.insert(list.end(), sublist.begin(), sublist.end());
38 @@ -629,14 +633,23 @@
40 #if BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR < 36
41 std::string name = dir_iter->leaf();
42 -#else
43 +#elseif BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR >= 36 and BOOST_VERSION_MINOR < 46
44 std::string name = dir_iter->filename();
45 +#else //BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR >= 46
46 + std::string name = dir_iter->path().filename().string();
47 #endif
48 if ((int)name.find(package_suffix) > 0 && (name.length()
49 - name.find(package_suffix) == package_suffix.length()))
51 list.push_back(source_directory + "/" + name);
54 + if ((int)name.find(package_suffix2) > 0 && (name.length()
55 + - name.find(package_suffix2) == package_suffix.length()))
56 + {
57 + list.push_back(source_directory + "/" + name);
58 + }