Commit Graph

114 Commits

Author SHA256 Message Date
Frank Schreiner
8ee059bd4b - Update to version 0.10.0.1550589094.e2ae17d:
* move to python3
  * add python 3.6 to testing
  * added logging for better debugging changesgenerate
  * raise exception if no changesauthor given
  * removed python 2.6 from travis

- Update to version 0.9.5.1548407358.b62685b:
  * Stop using @opensuse.org addresses to indicate a missing address
  * move argparse dep to -common package
  * allow submodule and ssl options in appimage
  * sync spec file as used in openSUSE:Tools project

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=236
2019-02-19 15:53:05 +00:00
Frank Schreiner
6ead698fdf - Update to version 0.9.5.1545082095.8dbc95f:
* [dist] fix service files installation in Makefile

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=230
2018-12-17 21:30:12 +00:00
Frank Schreiner
6b7fab2e8b - Update to version 0.9.5.1545064321.5c10ac0:
* check encoding problems for svn and print proper error msg
  * added new param '--locale'
  * separate service file installation in GNUmakefile
  * added glibc as Recommends in spec file
  * cleanup for broken svn caches
  * another fix for unicode problem in obs_scm

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=229
2018-12-17 20:45:29 +00:00
Frank Schreiner
60a6873b2e - Update to version 0.9.5.1544099104.f52adb7:
* Final fix for unicode in filenames
  * Another attempt to fix unicode filenames in prep_tree_for_archive

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=228
2018-12-06 12:26:37 +00:00
Frank Schreiner
5b38ed4bc7 - Update to version 0.9.5.1544015491.08dd948:
* Another attempt to fix unicode filenames in prep_tree_for_archive

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=227
2018-12-05 13:20:04 +00:00
Frank Schreiner
4c55b255b3 - Update to version 0.9.5.1543865445.4e2fbad:
* fix bug with unicode filenames in prep_tree_for_archive
  * reuse _service*_servicedata/changes files from previous service runs

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=225
2018-12-03 19:33:43 +00:00
Frank Schreiner
c9a56ad3c6 - Update to version 0.9.5.1543588452.b19491f:
* fix problems with  unicode characters in commit messages for changeloggenerate

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=223
2018-11-30 14:35:48 +00:00
Frank Schreiner
2d68a9df1d - Update to version 0.9.5.1543502111.e576bd6:
* fix encoding issues if commit message contains utf8 char

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=222
2018-11-29 14:38:01 +00:00
Frank Schreiner
d1e9531b9b - Update to version 0.9.5.1543424658.8740ef1:
* revert encoding for old changes file

- Update to version 0.9.5.1543418966.30359e4:
  * change pylint/flake8 back to 2.7 for now
  * remove hardcoded utf-8 encodings

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=221
2018-11-28 17:07:51 +00:00
Frank Schreiner
b85970d093 - Update to version 0.9.5.1542905297.a6e346a:
* make code python3 ready
  * Add support for extract globbing

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=217
2018-11-22 20:23:44 +00:00
Frank Schreiner
50586a2f50 * fix CVE-2018-12474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=213
2018-09-27 08:54:56 +00:00
Frank Schreiner
d9d1da0537 - Update to version 0.9.4.1537959361.56833cb:
* enable flake8 in hound
  * cleanup for pylint and flake8
  * split pylint2 in GNUmakefile
  * fix check for "--reproducible"
  * create reproducible obscpio archives
  * fix flake warning

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=212
2018-09-26 11:35:49 +00:00
Frank Schreiner
12cdb65e22 - Update to version 0.9.3.1537869751.51a17c5:
* fix regression from 44b3bee
  * Support also SSH urls for Git

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=211
2018-09-25 10:05:57 +00:00
Frank Schreiner
8f04de3070 - Update to version 0.9.2.1537788075.fefaa74:
* check name/version option in obsinfo for slashes
  * check url for remote url
  * check symlinks in subdir parameter
  * check filename for slashes
  * disable follow_symlinks in extract feature
  * run download_files in appimage and snapcraft case
  * check --extract file path for parent dir
  * changed os.removedirs -> shutil.rmtree
  * Adding information regarding the *package-metadata* option for the *tar* service The tar service is highly useful in combination with the *obscpio* service. After the fix for the metadata for the latter one, it is important to inform the users of the *tar* service that metadata is kept only if the flag *package-metadata* is enabled. Add the flag to the .service file for mentioning that.
  * Allow metadata packing for CPIO archives when desired As of now, metadata are always excluded from *obscpio* packages. This is because the *package-metadata* flag is ignored; this change (should) make *obscpio* aware of it.
  * Fix parameter descriptions

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=210
2018-09-24 12:23:25 +00:00
924b4b753a switch
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=208
2018-09-19 08:19:11 +00:00
835e984397 cleanup
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=206
2018-08-24 06:46:50 +00:00
Frank Schreiner
109ab89eb7 - Update to version 0.9.1.1530616709.1329314:
* improve handling of corrupt git cache directories
  * only do git stash save/pop if we have a non-empty working tree (#228)
  * sort imports
  * don't allow DEBUG_TAR_SCM to change behaviour (#240)
  * add stub user docs in lieu of something proper (#238)
  * [dist] fix build for distros not yet supporting Recommends tag
  * Remove clone_dir if clone fails
  * python-unittest2 is only required for the optional make check
  * move python-unittest2 dep to test suite only part (submission by olh)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=203
2018-07-03 19:33:53 +00:00
Frank Schreiner
d33f3b5b94 new version 0.9.0
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=195
2018-04-19 13:57:24 +00:00
715525ee55 Accepting request 596230 from home:olh:branches:openSUSE:Tools
- python-unittest2 is only required for the optional make check

OBS-URL: https://build.opensuse.org/request/show/596230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=194
2018-04-16 09:44:17 +00:00
Frank Schreiner
d6ff969337 - Update to version 0.8.0.1520581079.e26b0ae:
* make installation of scm's optional
  * add a lot more detail to README
  * Git clone with --no-checkout in prepare_working_copy
  * Refactor and simplify git prepare_working_copy
  * Cleanup flake8 checks
  * Only use current dir if it actually looks like git (Fixes #202)
  * reactivate test_obscpio_extract_d
  * fix broken test create_archive
  * fix broken tests for broken-links
  * changed PREFIX in Gnumakefile to /usr
  * new cli option --skip-cleanup
  * fix for broken links
  * fix reference to snapcraft YAML file
  * fix docstring typo in TarSCM.scm.tar.fetch_upstream
  * acknowledge deficiencies in dev docs
  * wrap long lines in README

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=193
2018-03-09 07:40:44 +00:00
bbea40d12d fix fedora build
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=188
2017-10-11 06:50:26 +00:00
Frank Schreiner
509c7b9be0 - Update to version 0.8.0.1499787575.2419460:
* [test] refactor of fake classes
  * [bugfix] fix UnboundLocalError: local variable 'parent_tag'

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=184
2017-07-12 06:16:00 +00:00
Frank Schreiner
75308abb1a - Update to version 0.8.0.1499787575.2419460:
* [dist] changed to %py_compile in spec file
  * [bugfix] fixes issue #173
  * [bugfix] Decoupled self.scm from class name in TarSCM/scm/*
  * [lint] make tests/unittestcases.py flake8 ready
  * [lint] more fixes for pylint readiness
  * [lint] refactor unittestcases.py
  * [test] increase cov for TarSCM.archive from 61% to 92%
  * [doc] added comment to --use-obs-scm
  * [test] refactor of fake classes
  * [bugfix] fix UnboundLocalError: local variable 'parent_tag'

- Update to version 0.8.0.1498846582.8799787:
  * fix for gh issue #169
  * new version placeholder for empty version string
  * fix for bzr locale problem in testsuite
  * pylint and flake8 in testsuite for better code quality
  * code cleanup to be more pylint and flake8 compatible

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=183
2017-07-11 17:04:06 +00:00
e5d5da055c hotfix
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=182
2017-07-09 11:09:20 +00:00
69c2eed74f osc copypac from project:openSUSE:Tools package:obs-service-tar_scm revision:179
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=181
2017-07-01 06:57:23 +00:00
Frank Schreiner
8a58729914 - Update to version 0.7.0.1498846582.8799787:
* [testing] ENV var TAR_SCM_TC to select test cases
  * [dist] Adding spec file to git
  * [fix] finalize method for TarSCM.scm.* classes
  * [feature] new version placeholder for empty version string
  * [ci] fix for bzr locale problem
  * [ci] make pep8, pylint and flake8 optional ...

M    _servicedata
D    obs-service-tar_scm-0.7.0.1496831936.d960322.tar.gz
A    obs-service-tar_scm-0.7.0.1498846582.8799787.tar.gz
M    obs-service-tar_scm.changes
M    obs-service-tar_scm.spec

Diff for working copy: .
Index: _servicedata
===================================================================

--- _servicedata	(revision 7503ece26992012bce22abce29c01aae)
+++ _servicedata	(working copy)
@@ -5,4 +5,4 @@
             <param name="url">git://github.com/M0ses/obs-service-tar_scm.git</param>
           <param name="changesrevision">b742dfc0e12755cf306a95439494b5bdde7c0c61</param></service><service name="tar_scm">
                 <param name="url">git://github.com/openSUSE/obs-service-tar_scm.git</param>
-              <param name="changesrevision">03230fdf240addb3dd1ba3201beef50722cc87ac</param></service></servicedata>
\ No newline at end of file
+              <param name="changesrevision">949a2f52ebe929c1ed9b52a1e9e0d6568a97767d</param></service></servicedata>
\ No newline at end of file
Index: obs-service-tar_scm.changes
===================================================================

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=180
2017-06-30 21:01:54 +00:00
e2eb793df1 move spec file to git
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=178
2017-06-19 11:17:40 +00:00
fdaa887a0a update
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=176
2017-06-07 10:40:44 +00:00
03c6267287 try
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=175
2017-06-07 08:54:05 +00:00
c09d82482c - added Requires: python2 for Fedora >= 25
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=170
2017-05-11 11:50:35 +00:00
3691489796 adapt summary
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=165
2017-04-20 06:24:11 +00:00
225a7d6c12 Accepting request 489044 from home:favogt:branches:openSUSE:Tools
Needed for 42.3.

OBS-URL: https://build.opensuse.org/request/show/489044
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=164
2017-04-18 09:27:21 +00:00
Frank Schreiner
f4169ab2d8 - Update to version 0.7.0.1492101301.747de50:
* skip broken tests temporarily

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=162
2017-04-13 16:36:00 +00:00
Frank Schreiner
e22c696d32 - Update to version 0.7.0.1492095435.eda090e:
* revision, repodir and repocachedir as attribute for TarSCM.<scm>
  * new class TarSCM.cli to make testing easier
  * testing script name more reliable
  * fixed arguments for singletask in case of snapcraft
  * refactored snapcraft code + first tests for snapcraft
  * added testcase for snapcraft finalize
  * split classes into several files
  * track module dependencies in requirements.txt
  * use unittest2 in Python 2.6
  * more testing for TarSCM.tasks
  * clone_dir/repodir/arch_dir(tar_dir)/args now attributes of scm objects
  * test case for save_run
  * major refactor of git cache handling
  * consolidation of archive.obscpio and archive.tar parameters
  * next test cases
  * unset CACHEDIRECTORY env variable in unit tests
  * update atime/mtime of repocachedir if already exists
  * prevent key errors when $HOME is not set
  * fix PEP8 problems and reenable PEP8 testing
  * keep checkout while running with osc
  * fix local checkout when running in osc
  * force remove of files while 'make clean'
  * fix: also exclude directories when called .git
  * fix problems with generatechanges when ~/.obs/tar_scm exists
  * initial appimage support
  * Provide version rewrite using a regex pattern and replacement.
  * new parameter --match-tag to filter tags
  * keep .gitlab/.github directories

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=161
2017-04-13 15:15:45 +00:00
8055efe149 Accepting request 487597 from home:adrianSuSE:branches:openSUSE:Tools
package split

OBS-URL: https://build.opensuse.org/request/show/487597
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=150
2017-04-12 14:06:22 +00:00
Frank Schreiner
7cd2f7ece6 - Update to version 0.7.0.1490358243.8de854e:
* keep .gitlab/.github directories

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=147
2017-03-24 12:56:23 +00:00
Frank Schreiner
d67981a0fc - Update to version 0.7.0.1490263157.682db30:
* fix local checkout when running in osc
  * force remove of files while 'make clean'
  * fix: also exclude directories when called .git
  * Provide version rewrite using a regex pattern and replacement.
  * fix problems with generatechanges when ~/.obs/tar_scm exists
  * initial appimage support
  * make pep8 happy again
  * test cases for version rewrite
  * new parameter --match-tag to filter tags

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=146
2017-03-23 10:10:35 +00:00
c882b0425e Accepting request 460866 from home:dimstar:Factory
- Replayce python-yaml Requires/Buildrequires with python-PyYAML,
  which is actually its correct name.

The legacy symbol python-yaml did get lost with the singlespec migration.
It is likely re=appearing in the future, nevertheless it is not wrong
to fix obs-service-tar_scm to use the proper package names

OBS-URL: https://build.opensuse.org/request/show/460866
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=144
2017-02-28 15:43:11 +00:00
Frank Schreiner
7ad16b8616 - Update to version 0.7.0.1484082405.7671be8:
* fix problems with generatechanges when ~/.obs/tar_scm exists

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=142
2017-01-10 21:10:56 +00:00
Frank Schreiner
76383295f7 - Update to version 0.7.0.1481203567.804351a:
* fix: also exclude directories when called .git

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=140
2016-12-14 13:43:13 +00:00
Frank Schreiner
440f89de08 - Update to version 0.7.0.1480953937.a4b8b09:
* fix local checkout when running in osc
  * force remove of files while 'make clean'

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=139
2016-12-07 06:07:12 +00:00
Frank Schreiner
c7ec3f6b5a - Update to version 0.7.0.1480000004.4027270:
* fixed pip8 problems
  * keep checkout while running with osc

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=137
2016-11-24 15:08:29 +00:00
Frank Schreiner
40fcb4fbf1 - Update to version 0.7.0.1478249268.e162c66:
* prevent key errors when $HOME is not set

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=136
2016-11-04 08:49:41 +00:00
Frank Schreiner
33f10f567a - Update to version 0.7.0.1477858520.51a62fb:
* added locking for cachedir in jailed mode
  * removed setup_tracking_branches and '--dissociate'
  * inital version of TarSCM classes
  * scm_object generation moved to singletask
  * FETCH_UPSTREAM_COMMANDS into classes
  * moved update_cache_* to classes
  * moved detect_version into classes and refactored calls of get_timestamp_*
  * moved get_timestamp functions into scm classes
  * git_ref_exists -> TarSCM.git._ref_exists
  * fetch_upstream_git_submodules -> fetch_submodules to get rid of exceptions for git
  * just moved some functions for better overview
  * refactor of detect_changes into classes
  * url as attribute of TarSCM.scm
  * run_cmd and safe_run moved into class helpers
  * combine os.path.join statement
  * refactoring fetch_upstream to be part of TarSCM.scm
  * new classes for archives
  *  common method 'get_current_commit' to get rid of execption for git
  * refactored detect_changes to get rid of changesgenerate exception
  * get_repocachedir -> TarSCM.scm
  * revision, repodir and repocachedir as attribute for TarSCM.<scm>
  * new class TarSCM.cli to make testing easier
  * testing script name more reliable
  * fixed arguments for singletask in case of snapcraft
  * refactored snapcraft code + first tests for snapcraft
  * added testcase for snapcraft finalize
  * split classes into serveral files
  * more testing for TarSCM.tasks
  * clone_dir/repodir/arch_dir(tar_dir) now attributes of scm objects

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=135
2016-10-30 20:50:53 +00:00
80e16b905f fixing
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=134
2016-10-27 11:23:47 +00:00
b011e727b0 switch to the new branch from Frank
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=133
2016-10-27 07:49:08 +00:00
d9ded7b036 update
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=131
2016-09-15 07:50:09 +00:00
4bc6035419 grr
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=127
2016-08-31 15:27:38 +00:00
579c202873 up
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=126
2016-08-31 14:56:03 +00:00
626115a731 try
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=120
2016-08-31 09:54:10 +00:00