Don't break link structure if package is a link in OBS, #675
authorZhang Qiang <qiang.z.zhang@intel.com>
Fri, 18 Jan 2013 16:06:09 +0000 (11:06 -0500)
committerZhang Qiang <qiang.z.zhang@intel.com>
Fri, 18 Jan 2013 23:01:20 +0000 (18:01 -0500)
Change-Id: Iac1991d81f996e3f8f4d8368a9bafbea824af723

gitbuildsys/oscapi.py

index a1971c1..8a46158 100644 (file)
@@ -205,9 +205,9 @@ class OSC(object):
         old is a list of remote filenames
         changed, not changed and new are lists of local filepaths
         """
-
         # Get list of files from the OBS
-        rfiles = core.meta_get_filelist(self.apiurl, prj, pkg, verbose=True)
+        rfiles = core.meta_get_filelist(self.apiurl, prj, pkg, verbose=True,\
+                                        expand=True)
 
         old, not_changed, changed, new = [], [], [], []
 
@@ -241,7 +241,8 @@ class OSC(object):
 
         query = {'cmd'    : 'commitfilelist',
                  'user'   : conf.get_apiurl_usr(self.apiurl),
-                 'comment': message}
+                 'comment': message,
+                 'keeplink': 1}
         url = core.makeurl(self.apiurl, ['source', prj, pkg], query=query)
 
         xml = "<directory>"